From af6cad518f8c41b5fe1369748f3942062d9ed1f8 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Sun, 10 Apr 2022 22:51:41 +0200 Subject: [PATCH] feat(HedgeDoc): fix variables --- hedgedoc-update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hedgedoc-update.sh b/hedgedoc-update.sh index 7f568d2..31a85cc 100644 --- a/hedgedoc-update.sh +++ b/hedgedoc-update.sh @@ -7,7 +7,7 @@ LATEST_VERSION=$(curl --silent https://api.github.com/repos/$ORG/$REPO/releases/ jq --raw-output .tag_name) function do_upgrade() { - supervisorctl stop $APP_NAME + supervisorctl stop hedgedoc echo "waiting 1 minute until all processes are stopped" sleep 1m mv --verbose ~/hedgedoc ~/hedgedoc_"$LOCAL_VERSION" @@ -20,8 +20,8 @@ function do_upgrade() { cd ~/hedgedoc || exit bin/setup echo "You may need to wait a minute until HedgeDoc is up and running." - supervisorctl start $APP_NAME - echo "If everything works fine you can delete ~/hedgedoc_$USED_VERSION" + supervisorctl start hedgedoc + 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." rm --recursive ~/hedgedoc_"$LOCAL_VERSION" }