Update caddy-jail.sh
parent
a61b90eff1
commit
f15913b80b
|
@ -140,3 +140,11 @@ if [ ${DNS_CERT} -eq 1 ]; then
|
||||||
else
|
else
|
||||||
iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy
|
iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Copy and edit pre-written config file
|
||||||
|
iocage exec "${JAIL_NAME}" cp -f /mnt/includes/caddy /usr/local/etc/rc.d/
|
||||||
|
|
||||||
|
iocage exec "${JAIL_NAME}" sysrc caddy_enable="YES"
|
||||||
|
iocage exec "${JAIL_NAME}" sysrc caddy_config="/usr/local/www/Caddyfile"
|
||||||
|
|
||||||
|
iocage restart "${JAIL_NAME}"
|
||||||
|
|
Loading…
Reference in New Issue