v1.7.5: Fix update_firmware Step 3c (chmod +x setup_services.sh)
Le check -x echouait car git config core.fileMode=false (defini dans installation_part1.sh) strippe le bit executable. Resultat: Step 3c logguait 'not found or not executable, skipping' au lieu de reellement appeler setup_services.sh. Fix: chmod +x avant l'execution, comme le fait deja installation_part2.sh sur le meme script. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -112,13 +112,17 @@ fi
|
||||
# masked, or never installed gets recreated from the canonical source.
|
||||
# Idempotent: rewriting an existing service file with the same content
|
||||
# is a no-op for already-running services.
|
||||
# Note: git config core.fileMode=false strips the executable bit, so we
|
||||
# chmod +x explicitly (same pattern as installation_part2.sh).
|
||||
print_status ""
|
||||
print_status "Step 3c: Reconciling systemd services with setup_services.sh..."
|
||||
if [ -x /var/www/nebuleair_pro_4g/services/setup_services.sh ]; then
|
||||
sudo /var/www/nebuleair_pro_4g/services/setup_services.sh
|
||||
SETUP_SERVICES=/var/www/nebuleair_pro_4g/services/setup_services.sh
|
||||
if [ -f "$SETUP_SERVICES" ]; then
|
||||
sudo chmod +x "$SETUP_SERVICES"
|
||||
sudo "$SETUP_SERVICES"
|
||||
check_status "Setup services reconciliation"
|
||||
else
|
||||
print_status "⚠ setup_services.sh not found or not executable, skipping"
|
||||
print_status "⚠ setup_services.sh not found, skipping"
|
||||
fi
|
||||
|
||||
# Step 4: Restart critical services if they exist
|
||||
|
||||
Reference in New Issue
Block a user