feat(caddy): import Caddyfile routes on startup if table is empty
On every startup, if Caddy is already enabled but the caddy table has no routes (e.g. after a re-deploy), importCaddyfileRoutes() is called so the static GhostGrid entries from /etc/caddy/Caddyfile are seeded automatically. Also ensures deploy.sh is executable via proxmox-ghostgrid.sh.
This commit is contained in:
@ -183,6 +183,7 @@ fi
|
||||
run "sudo -u ghostgrid git clone --branch ${REPO_BRANCH} '${CLONE_URL}' ${APP_DIR}"
|
||||
run "sudo -u ghostgrid git clone --branch ${DEV_BRANCH} '${CLONE_URL}' ${DEV_DIR}"
|
||||
run "chmod 600 ${APP_DIR}/.git/config ${DEV_DIR}/.git/config"
|
||||
run "chmod +x ${APP_DIR}/deploy/deploy.sh ${DEV_DIR}/deploy/deploy.sh"
|
||||
msg_ok "Repositories cloned (main + dev)"
|
||||
|
||||
msg_info "Creating .env file for each instance"
|
||||
|
||||
Reference in New Issue
Block a user