Compare commits

...

2 Commits

Author SHA1 Message Date
629c54b21c Merge pull request 'Update bootstrap.sh' (#18) from dev into prod
Reviewed-on: #18
2026-07-23 17:50:25 +02:00
2d5f13ba98 Update bootstrap.sh 2026-07-23 17:50:15 +02:00

View File

@@ -136,7 +136,7 @@ mv $REBOOTBIN $REBOOTBINOLD
cat << 'EOF' > $REBOOTBIN cat << 'EOF' > $REBOOTBIN
#!/bin/bash #!/bin/bash
touch /var/log/restart-flag touch /var/log/restart-flag
echo "[REBOOT] Ordre de reboot lancé" echo "[REBOOT] Rebooting server..."
sleep 1 sleep 1
/usr/sbin/reboot.old /usr/sbin/reboot.old
EOF EOF
@@ -146,7 +146,7 @@ chmod +x $REBOOTBIN
cat << 'EOF' > $SHUTBIN cat << 'EOF' > $SHUTBIN
#!/bin/bash #!/bin/bash
touch /var/log/restart-flag touch /var/log/restart-flag
echo "[SHUTDOWN] Ordre d'arrêt lancé" echo "[SHUTDOWN] Stopping server..."
sleep 1 sleep 1
shutdown -h now shutdown -h now
EOF EOF