fix(missions): correct nginx typo and sync token_check dependency

This commit is contained in:
2025-12-28 16:24:36 +01:00
parent 148ca56af4
commit fa67d4133f
2 changed files with 8 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ location /api/docs {
}
# CrumbBlocks (Blockly Missions)
location /crumblocks/ {
location /crumbblocks/ {
alias /home/crumbmission/missions/;
autoindex on;
expires 1h;

View File

@@ -80,6 +80,13 @@ if [ -d "$REPO_ROLES_DIR" ]; then
# We use cp -f to overwrite.
cp -f "$REPO_ROLES_DIR"/*_zero.sh "$APP_ROLES_DIR/" 2>/dev/null || print_info "No zero scripts found to sync."
# Also sync token_check.sh if it exists (dependencies)
# It might be in the root of the repo or in roles dir. We check both.
if [ -f "$HOME_DIR/missions/token_check.sh" ]; then
cp -f "$HOME_DIR/missions/token_check.sh" "$APP_ROLES_DIR/"
print_info "Synced token_check.sh dependency."
fi
# Ensure they are executable and owned correctly
chmod +x "$APP_ROLES_DIR"/*.sh
chown root:crumbforest "$APP_ROLES_DIR"/*.sh