mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-10-31 18:52:31 +00:00
Update wireguard-install.sh
This commit is contained in:
parent
12e72fa724
commit
e874ddfa97
@ -104,7 +104,7 @@ echo "Remove WireGuard Server ($distribution)"
|
|||||||
if [ "$distribution" = "CentOS" ] || [ "$distribution" = "Red\ Hat" ] || [ "$distribution" = "Oracle" ]; then
|
if [ "$distribution" = "CentOS" ] || [ "$distribution" = "Red\ Hat" ] || [ "$distribution" = "Oracle" ]; then
|
||||||
systemctl stop wg-quick@wg0.service > /dev/null 2>&1
|
systemctl stop wg-quick@wg0.service > /dev/null 2>&1
|
||||||
systemctl disable wg-quick@wg0.service > /dev/null 2>&1
|
systemctl disable wg-quick@wg0.service > /dev/null 2>&1
|
||||||
sudo rm /etc/yum.repos.d/wireguard.repo
|
rm -f /etc/yum.repos.d/wireguard.repo
|
||||||
yum remove -y wireguard-dkms wireguard-tools > /dev/null 2>&1
|
yum remove -y wireguard-dkms wireguard-tools > /dev/null 2>&1
|
||||||
rm -rf /etc/wireguard
|
rm -rf /etc/wireguard
|
||||||
rm -f /etc/sysctl.d/wg.conf
|
rm -f /etc/sysctl.d/wg.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user