From fa67d4133febbb95162d097f603a91e1ef30802f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=BCmel=20Branko?= Date: Sun, 28 Dec 2025 16:24:36 +0100 Subject: [PATCH] fix(missions): correct nginx typo and sync token_check dependency --- native_crumbcore_v1/nginx/crumbforest-locations.conf | 2 +- native_crumbcore_v1/setup_missions.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/native_crumbcore_v1/nginx/crumbforest-locations.conf b/native_crumbcore_v1/nginx/crumbforest-locations.conf index e431b28..8ddac06 100644 --- a/native_crumbcore_v1/nginx/crumbforest-locations.conf +++ b/native_crumbcore_v1/nginx/crumbforest-locations.conf @@ -61,7 +61,7 @@ location /api/docs { } # CrumbBlocks (Blockly Missions) -location /crumblocks/ { +location /crumbblocks/ { alias /home/crumbmission/missions/; autoindex on; expires 1h; diff --git a/native_crumbcore_v1/setup_missions.sh b/native_crumbcore_v1/setup_missions.sh index 1d736ca..d5d7fc4 100755 --- a/native_crumbcore_v1/setup_missions.sh +++ b/native_crumbcore_v1/setup_missions.sh @@ -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