docs: add 5s safety warning before --destroy

This commit is contained in:
Claus Lohmar 2026-07-07 12:06:12 +01:00
parent 79bf23618d
commit 7b3942658d

View file

@ -22,6 +22,12 @@ DOMAIN="${DOMAIN:-nextwks.eu}"
# --- Mode detection --- # --- Mode detection ---
GREENFIELD=false GREENFIELD=false
if [ "${1:-}" = "--destroy" ]; then if [ "${1:-}" = "--destroy" ]; then
echo ""
echo "⚠️ WARNING: Greenfield deploy destroys LE certificates and hits Let's Encrypt rate limits!"
echo " Only use --destroy if you understand the consequences."
echo " Press Ctrl+C now to abort, or wait 5 seconds to continue..."
echo ""
sleep 5
GREENFIELD=true GREENFIELD=true
echo "[MODE] Greenfield deploy (--destroy)" echo "[MODE] Greenfield deploy (--destroy)"
elif [ ! -d "$TARGET_DIR" ]; then elif [ ! -d "$TARGET_DIR" ]; then