Skip to content

Commit 0990fb2

Browse files
committed
Ajout de la gestion d'erreur pour l'ajout de cron @reboot
La commande cron est maintenant sécurisée pour continuer en cas d'échec. Si l'ajout échoue, une erreur est remontée dans les logs et la console, mais le script continue.
1 parent 4a516bd commit 0990fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.assets/new.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ if command -v crontab >/dev/null 2>&1; then
288288
echo "[DRYRUN] crontab append: @reboot /bin/ping -c 5 1.1.1.1 >/dev/null 2>&1 || true"
289289
fi
290290
else
291-
warn "crontab indisponible (cron non installé ?)"
291+
warn "crontab indisponible (cron non installé ?)"
292292
fi
293293

294294
# ============================== .bashrc perso =================================

0 commit comments

Comments
 (0)