~fkooman/vpn-maint-scripts

88822af5af870561b9260fcc7f0d20f76bebe4da — François Kooman 9 months ago fa76be6 v1
add warning
1 files changed, 13 insertions(+), 0 deletions(-)

M bin/vpn-maint-update-system-multi
M bin/vpn-maint-update-system-multi => bin/vpn-maint-update-system-multi +13 -0
@@ 21,6 21,19 @@ if [ -z "${NODES}" ]; then
    exit 1
fi

echo "**********************************************************"
echo "*                                                        *"
echo "*   Are you sure you want to UPDATE your VPN servers?    *"
echo "*                                                        *"
echo "*         All VPN clients will be disconnected!          *"
echo "*                                                        *"
echo "**********************************************************"
echo
printf "Continue? (y/n) [n]: "; read -r CONFIRM
if ! [ "${CONFIRM}" = "y" ] && ! [ "${CONFIRM}" = "Y" ]; then
    exit 1
fi

# stop all nodes
for NODE in ${NODES}
do