mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Upgraded Snap Candidate to have base core24, MongoDB 7 and Caddy 2.
Thanks to xet7 !
This commit is contained in:
parent
1b44c848ad
commit
6526d99123
4 changed files with 107 additions and 79 deletions
|
|
@ -1,10 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# get wekan/mongo settings
|
||||
# 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
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue