aboutsummarylogtreecommitdiffstats
path: root/upgrade.sh
diff options
context:
space:
mode:
authorGeoff Hudson2022-01-20 08:33:19 +0000
committerGeoff Hudson2022-01-20 08:33:19 +0000
commit32c9975ce78cb1bed3821afed192b9a3eaab68da (patch)
tree23bc6040b50117b9132430e7216b77c742a28056 /upgrade.sh
parent66c244bbd6f11b72c7d04ce26c9e1829763cfed3 (diff)
downloadaur-32c9975ce78cb1bed3821afed192b9a3eaab68da.tar.gz
Updated to newest version, and tried found install.sh isn't +x by default
Diffstat (limited to 'upgrade.sh')
-rwxr-xr-xupgrade.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/upgrade.sh b/upgrade.sh
index c9cf44957839..2d6272a8bfb7 100755
--- a/upgrade.sh
+++ b/upgrade.sh
@@ -13,6 +13,7 @@ if [[ -z $USER ]]; then
USER=root
fi
+systemctl stop crashplan-pro.service
cp /opt/crashplan/bin/upgrade.sh ${TMP}/upgrade.sh
echo "Editing ${UPDATE_PATH}/install.sh"
@@ -42,6 +43,8 @@ echo "LC_ALL=$LANG" > ${UPDATE_PATH}/run.conf
/usr/bin/sed -i '/^[[:blank:]]*strip_keys_from_indentity_file/ s/./#&/' ${UPDATE_PATH}/uninstall.sh
echo "Installing update"
+chmod +x ${UPDATE_PATH}/install.sh
+chmod +x ${UPDATE_PATH}/uninstall.sh
cd ${UPDATE_PATH} && ${UPDATE_PATH}/install.sh -q -v -u $USER
cp ${TMP}/upgrade.sh /opt/crashplan/bin/upgrade.sh
@@ -59,4 +62,6 @@ ln -sf "/opt/crachplan/bin/service.sh" /opt/crashplan/bin/CrashPlanEngine
rm -rf ${TMP}
rm -rf /opt/crashplan/upgrade/*
+
+systemctl start crashplan-pro.service
echo "Done!"