fix
This commit is contained in:
@@ -17,6 +17,18 @@ need_root() {
|
|||||||
[[ $EUID -eq 0 ]] || die "Запускать только от root"
|
[[ $EUID -eq 0 ]] || die "Запускать только от root"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
read -r -p "Вы уверены, что хотите удалить? (y/N): " answer
|
||||||
|
|
||||||
|
case "$answer" in
|
||||||
|
y|Y)
|
||||||
|
echo "Начинаю удаление..."
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Удаление отменено"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
# START
|
# START
|
||||||
#################################
|
#################################
|
||||||
|
|||||||
@@ -14,6 +14,18 @@ warn() { echo -e "\033[1;33m[WARN]\033[0m $1"; }
|
|||||||
|
|
||||||
[[ $EUID -eq 0 ]] || { echo "Запускать нужно от root"; exit 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
|
# PATHS
|
||||||
#################################
|
#################################
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ services:
|
|||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
restart: unless-stopped
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
@@ -268,6 +269,7 @@ services:
|
|||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
restart: unless-stopped
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ services:
|
|||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
restart: unless-stopped
|
||||||
depends_on: [node]
|
depends_on: [node]
|
||||||
ports:
|
ports:
|
||||||
- "$NGINX_PORT:$NGINX_PORT"
|
- "$NGINX_PORT:$NGINX_PORT"
|
||||||
@@ -309,6 +310,7 @@ services:
|
|||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
restart: unless-stopped
|
||||||
depends_on: [node]
|
depends_on: [node]
|
||||||
ports:
|
ports:
|
||||||
- "$NGINX_PORT:$NGINX_PORT"
|
- "$NGINX_PORT:$NGINX_PORT"
|
||||||
|
|||||||
Reference in New Issue
Block a user