summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Algar2021-09-10 10:55:59 -0700
committerRyan Algar2021-09-10 10:55:59 -0700
commitf6625e0c8380d8de5220f1aa186a21f1ae956c41 (patch)
treeb41eb8ec57264cd8772dd71c4953a27590ca3482
parent141f9f20b5b431c6fed9c7ea4fd562c546a1c0f6 (diff)
downloadaur-odin2-synthesizer.tar.gz
Adjust paths in .install, making sure to migrate the entire Odin2 directory (to catch the .conf file as well)
-rw-r--r--.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/.install b/.install
index 67db3018839..4d32dcedf11 100644
--- a/.install
+++ b/.install
@@ -16,16 +16,16 @@ migrateUserData() {
# If needed, create userspace path
if [[ ! -d "$homedir/.local/share/odin2/Soundbanks" ]] ; then
- sudo -u "$user" mkdir -p "$homedir/.local/share/odin2/Soundbanks" || return 1
+ sudo -u "$user" mkdir -p "$homedir/.local/share" || return 1
fi
# Create/Migrate the user data
if [[ -d /opt/odin2 ]] ; then
- sudo -u "$user" cp -r '/opt/odin2/Soundbanks/User Patches' "$homedir/.local/share/odin2/Soundbanks" || return 1
+ sudo -u "$user" cp -r '/opt/odin2' "$homedir/.local/share" || return 1
rm -rf /opt/odin2 || return 1
else
if [[ ! -d "$homedir/.local/share/odin2/Soundbanks/User Patches" ]] ; then
- mkdir "$homedir/.local/share/odin2/Soundbanks/User Patches"
+ mkdir -p "$homedir/.local/share/odin2/Soundbanks/User Patches"
fi
fi
}