From 47ce924a904663ddf8aa0a100689fd4e4798f8e2 Mon Sep 17 00:00:00 2001 From: NixReaper Date: Sat, 11 Apr 2026 12:09:31 -0500 Subject: [PATCH] fix(update): set web-readable permissions on dist dirs after rebuild --- scripts/update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/update.sh b/scripts/update.sh index 6c5295a..801ec9e 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -32,6 +32,12 @@ step "Rebuilding frontends" cd "$INSTALL_DIR" npm run build --workspace=nixserver --silent npm run build --workspace=nixclient --silent +# Ensure Apache (www-data) can read the rebuilt assets +chmod 755 "$INSTALL_DIR/nixserver" "$INSTALL_DIR/nixclient" +find "$INSTALL_DIR/nixserver/dist" -type d -exec chmod 755 {} \; +find "$INSTALL_DIR/nixserver/dist" -type f -exec chmod 644 {} \; +find "$INSTALL_DIR/nixclient/dist" -type d -exec chmod 755 {} \; +find "$INSTALL_DIR/nixclient/dist" -type f -exec chmod 644 {} \; success "Frontends rebuilt" step "Rebuilding server"