Browse Source

- Snap Caddy: set -agree flag for Let's Encrypt.

Thanks to halunk3 and xet7 !
Lauri Ojansivu 7 years ago
parent
commit
d50e78c787
1 changed files with 1 additions and 1 deletions
  1. 1 1
      snap-src/bin/caddy-control

+ 1 - 1
snap-src/bin/caddy-control

@@ -4,7 +4,7 @@
 source $SNAP/bin/wekan-read-settings
 source $SNAP/bin/wekan-read-settings
 
 
 if [ "$CADDY_ENABLED" = "true" ]; then
 if [ "$CADDY_ENABLED" = "true" ]; then
-    env LC_ALL=C caddy -conf=$SNAP_COMMON/Caddyfile -host=localhost:${CADDY_PORT}
+    env LC_ALL=C caddy -conf=$SNAP_COMMON/Caddyfile -host=localhost:${CADDY_PORT} -agree
 else
 else
     echo "caddy is disabled. Stop service"
     echo "caddy is disabled. Stop service"
     snapctl stop --disable ${SNAP_NAME}.caddy
     snapctl stop --disable ${SNAP_NAME}.caddy