From 3cb0e4e77e2f47fc854f41f67cc317f161e8a12d Mon Sep 17 00:00:00 2001 From: Den Piligrim <89912505+vasiljevdenis@users.noreply.github.com> Date: Thu, 25 Dec 2025 22:11:57 +0300 Subject: [PATCH] fix --- delete.sh | 12 ++++++++++++ forwarding_delete.sh | 12 ++++++++++++ forwarding_install.sh | 2 ++ install.sh | 2 ++ 4 files changed, 28 insertions(+) diff --git a/delete.sh b/delete.sh index 1bc7e2c..c3212b3 100644 --- a/delete.sh +++ b/delete.sh @@ -17,6 +17,18 @@ need_root() { [[ $EUID -eq 0 ]] || die "Запускать только от root" } +read -r -p "Вы уверены, что хотите удалить? (y/N): " answer + +case "$answer" in + y|Y) + echo "Начинаю удаление..." + ;; + *) + echo "Удаление отменено" + exit 1 + ;; +esac + ################################# # START ################################# diff --git a/forwarding_delete.sh b/forwarding_delete.sh index e310a25..1854467 100644 --- a/forwarding_delete.sh +++ b/forwarding_delete.sh @@ -14,6 +14,18 @@ warn() { echo -e "\033[1;33m[WARN]\033[0m $1"; } [[ $EUID -eq 0 ]] || { echo "Запускать нужно от root"; exit 1; } +read -r -p "Вы уверены, что хотите удалить? (y/N): " answer + +case "$answer" in + y|Y) + echo "Начинаю удаление..." + ;; + *) + echo "Удаление отменено" + exit 1 + ;; +esac + ################################# # PATHS ################################# diff --git a/forwarding_install.sh b/forwarding_install.sh index c9c1e4c..65b4762 100644 --- a/forwarding_install.sh +++ b/forwarding_install.sh @@ -225,6 +225,7 @@ services: nginx: image: nginx:alpine + restart: unless-stopped container_name: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro @@ -268,6 +269,7 @@ services: nginx: image: nginx:alpine + restart: unless-stopped container_name: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro diff --git a/install.sh b/install.sh index 2504411..240fdcc 100644 --- a/install.sh +++ b/install.sh @@ -261,6 +261,7 @@ services: nginx: image: nginx:alpine + restart: unless-stopped depends_on: [node] ports: - "$NGINX_PORT:$NGINX_PORT" @@ -309,6 +310,7 @@ services: nginx: image: nginx:alpine + restart: unless-stopped depends_on: [node] ports: - "$NGINX_PORT:$NGINX_PORT"