mirror of
https://github.com/wekan/wekan.git
synced 2026-02-15 20:48:08 +01:00
Snap: Migrate MongoDB from 3 to 7 only when "snap set wekan migrate-mongodb='true'". Not automatically.
Thanks to xet7 !
This commit is contained in:
parent
cd0cd64849
commit
ae01ea576c
5 changed files with 239 additions and 98 deletions
|
|
@ -9,7 +9,7 @@ if [ "$CADDY_ENABLED" = "true" ]; then
|
|||
# The 'agree' option is no longer needed as Caddy 2 doesn't prompt for EULA
|
||||
env LC_ALL=C caddy run --config $SNAP_COMMON/Caddyfile
|
||||
else
|
||||
echo "caddy is disabled. Stop service"
|
||||
snapctl stop --disable ${SNAP_NAME}.caddy
|
||||
echo "caddy is disabled. Service stopping disabled"
|
||||
# snapctl stop --disable ${SNAP_NAME}.caddy
|
||||
# sleep here, in case snapctl fails to stop service so we do not restart too often
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue