fix(missions): correct nginx typo and sync token_check dependency
This commit is contained in:
@@ -61,7 +61,7 @@ location /api/docs {
|
||||
}
|
||||
|
||||
# CrumbBlocks (Blockly Missions)
|
||||
location /crumblocks/ {
|
||||
location /crumbblocks/ {
|
||||
alias /home/crumbmission/missions/;
|
||||
autoindex on;
|
||||
expires 1h;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user