mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Adding mongodb service control to configure hook
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
This commit is contained in:
parent
f7b72a1a80
commit
e3bd1c4d23
1 changed files with 7 additions and 0 deletions
7
snap/hooks/configure
vendored
7
snap/hooks/configure
vendored
|
@ -22,5 +22,12 @@ else
|
|||
snapctl stop --disable ${SNAP_NAME}.caddy 2>&1 || true
|
||||
fi
|
||||
|
||||
value=$(snapctl get disable-mongodb)
|
||||
if [ "$value" = "true" ]; then
|
||||
snapctl stop --disable ${SNAP_NAME}.mongodb 2>&1 || true
|
||||
else
|
||||
snapctl start --enable ${SNAP_NAME}.mongodb 2>&1 || true
|
||||
fi
|
||||
|
||||
# restart all services
|
||||
snapctl restart ${SNAP_NAME} 2>&1 || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue