fix(installer): add src/ deploy + drop MakeDirectory=yes; bump 1.3.1

- install.sh now deploys the src/ directory alongside routes/.
  Without this, fresh installs of v1.3.0+ produce containers whose
  Dockerfile references src/ but the directory is missing on the host
  filesystem, so docker build fails with "/src: not found".

- The fallback heredoc that writes /etc/systemd/system/dashcaddy-
  updater.path drops MakeDirectory=yes for the same reason it was
  removed from the on-disk unit (e994ad1): systemd creates the watched
  trigger.json path as an empty directory on unit start, blocking
  every subsequent update with EISDIR.

Bumped to 1.3.1 so the existing v1.3.0 instance auto-updates and
picks up these and the host-script fix from 0cf6323.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-06 18:42:23 -07:00
parent 0cf63231d3
commit 6e47df0d3c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "dashcaddy-api",
"version": "1.3.0",
"version": "1.3.1",
"description": "DashCaddy API server - Dashboard backend for Docker, Caddy & DNS management",
"main": "server.js",
"scripts": {

View File

@@ -435,6 +435,7 @@ fetch_source() {
cp -f "${api_src}/Dockerfile" "$API_DIR/"
cp -f "${api_src}/openapi.yaml" "$API_DIR/" 2>/dev/null || true
[[ -d "${api_src}/routes" ]] && cp -rf "${api_src}/routes" "$API_DIR/"
[[ -d "${api_src}/src" ]] && cp -rf "${api_src}/src" "$API_DIR/"
ok "API files deployed"
# Deploy dashboard files
@@ -698,7 +699,6 @@ install_updater_service() {
Description=Watch for DashCaddy update trigger
[Path]
PathChanged=/opt/dashcaddy/updates/trigger.json
MakeDirectory=yes
[Install]
WantedBy=multi-user.target
PATHEOF