docs: add 5s safety warning before --destroy
This commit is contained in:
parent
79bf23618d
commit
7b3942658d
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue