mirror of
https://github.com/EV21/uberspace-helper.git
synced 2026-10-08 04:43:18 +02:00
feat(HedgeDoc): fix variables
This commit is contained in:
1 file changed
+3
-3
+3
-3
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user