This commit is contained in:
Den Piligrim
2025-12-25 22:11:57 +03:00
parent 13e64b4e86
commit 3cb0e4e77e
4 changed files with 28 additions and 0 deletions
+12
View File
@@ -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
#################################
+12
View File
@@ -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
#################################
+2
View File
@@ -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
+2
View File
@@ -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"