fix: stale rootfs container cleanup, OnlyOffice/NPM port corrections
ISO build: - Remove stale archipelago-rootfs-tmp container before creating new one (previous failed builds leave it behind, blocking subsequent builds) Container ports: - OnlyOffice: fix LAN address from 8044 to 9980 (actual mapped port) - Nginx Proxy Manager: fix from 8181 to 81 (correct admin port) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -502,6 +502,7 @@ SYSTEMDSERVICE
|
||||
$CONTAINER_CMD build --no-cache --platform $CONTAINER_PLATFORM -t archipelago-rootfs -f "$WORK_DIR/Dockerfile.rootfs" "$WORK_DIR"
|
||||
|
||||
echo " Exporting filesystem..."
|
||||
$CONTAINER_CMD rm -f archipelago-rootfs-tmp 2>/dev/null || true
|
||||
$CONTAINER_CMD create --platform $CONTAINER_PLATFORM --name archipelago-rootfs-tmp archipelago-rootfs
|
||||
$CONTAINER_CMD export archipelago-rootfs-tmp > "$ROOTFS_TAR"
|
||||
$CONTAINER_CMD rm archipelago-rootfs-tmp
|
||||
@@ -1368,6 +1369,9 @@ chown -R 100000:100000 /var/lib/archipelago/data
|
||||
# Enable linger so rootless podman containers survive logout
|
||||
loginctl enable-linger archipelago 2>/dev/null || true
|
||||
|
||||
# Enable podman-restart so containers with --restart=unless-stopped auto-start on boot
|
||||
runuser -u archipelago -- bash -c 'export XDG_RUNTIME_DIR=/run/user/1000 && systemctl --user enable podman-restart.service' 2>>"$LOG" || true
|
||||
|
||||
# Ensure podman socket is active for archipelago user
|
||||
runuser -u archipelago -- bash -c 'export XDG_RUNTIME_DIR=/run/user/1000 && systemctl --user enable --now podman.socket' 2>>"$LOG" || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user