fix: update mode chowns .go build cache to app user

- .go/ directory was root-owned from earlier builds
- Prevents 'permission denied' errors during go build
This commit is contained in:
Claus Lohmar 2026-06-03 08:10:57 +00:00
parent 0d42a35cb8
commit 6e61740f0a

View file

@ -106,7 +106,7 @@ if [ "${1:-}" = "-update" ]; then
sudo_if chmod +x app
fi
# Fix ownership of any new files.
# Fix ownership of all files (build cache may be root-owned from earlier builds).
sudo_if chown -R "${APP_USER:-${SUDO_USER:-$(whoami)}}:${APP_USER:-${SUDO_USER:-$(whoami)}}" "$INSTALL_DIR" 2>/dev/null || true
info "Restarting service..."