mirror of
https://github.com/deadcxap/init_scripts.git
synced 2026-07-02 05:43:40 +03:00
fix sudo
This commit is contained in:
@@ -81,7 +81,7 @@ sed \
|
||||
read -rp "IP или домен центрального сервера: " CENTRAL_HOST
|
||||
CENTRAL_IP=$(getent ahosts "$CENTRAL_HOST" | awk '{print $1; exit}')
|
||||
if [ -n "$CENTRAL_IP" ]; then
|
||||
ufw allow from "$CENTRAL_IP" to any port "$NODE_PORT" proto tcp comment "PANEL" && ufw reload
|
||||
sudo ufw allow from "$CENTRAL_IP" to any port "$NODE_PORT" proto tcp comment "PANEL" && ufw reload
|
||||
fi
|
||||
|
||||
# --- Шаг 5: запуск docker compose ---
|
||||
|
||||
Reference in New Issue
Block a user