feat(HedgeDoc): fix variables

This commit is contained in:
EV21 committed 2022-04-10 22:51:41 +02:00
1 parent e92013333f
commit af6cad518f
1 file changed
+3 -3
+3 -3
View File
@@ -7,7 +7,7 @@ LATEST_VERSION=$(curl --silent https://api.github.com/repos/$ORG/$REPO/releases/
jq --raw-output .tag_name) jq --raw-output .tag_name)
function do_upgrade() { function do_upgrade() {
supervisorctl stop $APP_NAME supervisorctl stop hedgedoc
echo "waiting 1 minute until all processes are stopped" echo "waiting 1 minute until all processes are stopped"
sleep 1m sleep 1m
mv --verbose ~/hedgedoc ~/hedgedoc_"$LOCAL_VERSION" mv --verbose ~/hedgedoc ~/hedgedoc_"$LOCAL_VERSION"
@@ -20,8 +20,8 @@ function do_upgrade() {
cd ~/hedgedoc || exit cd ~/hedgedoc || exit
bin/setup bin/setup
echo "You may need to wait a minute until HedgeDoc is up and running." echo "You may need to wait a minute until HedgeDoc is up and running."
supervisorctl start $APP_NAME supervisorctl start hedgedoc
echo "If everything works fine you can delete ~/hedgedoc_$USED_VERSION" echo "If everything works fine you can delete ~/hedgedoc_$LOCAL_VERSION"
echo "Please consider that there might be uploaded files in ~/hedgedoc_$LOCAL_VERSION/public/uploads which were not migrated to the new version if you are using the default setting." echo "Please consider that there might be uploaded files in ~/hedgedoc_$LOCAL_VERSION/public/uploads which were not migrated to the new version if you are using the default setting."
rm --recursive ~/hedgedoc_"$LOCAL_VERSION" rm --recursive ~/hedgedoc_"$LOCAL_VERSION"
} }