mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
12 lines
390 B
Bash
Executable file
12 lines
390 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# get wekan/mongo settings
|
|
source $SNAP/bin/wekan-read-settings
|
|
|
|
if [ "$CADDY_ENABLED" = "true" ]; then
|
|
env LC_ALL=C caddy -conf=$SNAP_COMMON/Caddyfile -host=localhost:${CADDY_PORT} -agree
|
|
else
|
|
echo "caddy is disabled. Stop service"
|
|
snapctl stop --disable ${SNAP_NAME}.caddy
|
|
# sleep here, in case snapctl fails to stop service so we do not restart too often
|
|
fi
|