mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
15 lines
528 B
Bash
Executable file
15 lines
528 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Get wekan/mongo settings
|
|
source $SNAP/bin/wekan-read-settings
|
|
|
|
if [ "$CADDY_ENABLED" = "true" ]; then
|
|
# Use Caddy 2 command format
|
|
# The 'host' option is no longer needed in Caddy 2
|
|
# 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
|
|
# sleep here, in case snapctl fails to stop service so we do not restart too often
|
|
fi
|