1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-11-10 15:21:02 +00:00

reboot == evil

automatic reboot is bad
This commit is contained in:
Sakalou Aliaksei 2020-03-25 15:06:11 +03:00 committed by GitHub
parent 8130dc7b70
commit cb04b455fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,8 +188,8 @@ if [[ "$OS" =~ (fedora|centos) ]] && [[ $WG_RUNNING -ne 0 ]]; then
echo "You can check if WireGuard is running with: systemctl status wg-quick@$SERVER_WG_NIC" echo "You can check if WireGuard is running with: systemctl status wg-quick@$SERVER_WG_NIC"
echo "If you get something like \"Cannot find device wg0\", please run:" echo "If you get something like \"Cannot find device wg0\", please run:"
if [[ "$OS" = 'fedora' ]]; then if [[ "$OS" = 'fedora' ]]; then
echo "dnf update -y && reboot" echo "dnf update -y"
elif [[ "$OS" = 'centos' ]]; then elif [[ "$OS" = 'centos' ]]; then
echo "yum update -y && reboot" echo "yum update -y"
fi fi
fi fi