Browse Source

Update centos7_wireguard_install.sh

蘭雅sRGB 6 years ago
parent
commit
49fdea21cd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      centos7_wireguard_install.sh

+ 1 - 0
centos7_wireguard_install.sh

@@ -53,6 +53,7 @@ wireguard_install(){
     wg genkey | tee sprivatekey | wg pubkey > spublickey
     wg genkey | tee sprivatekey | wg pubkey > spublickey
     wg genkey | tee cprivatekey | wg pubkey > cpublickey
     wg genkey | tee cprivatekey | wg pubkey > cpublickey
     chmod 777 -R /etc/wireguard
     chmod 777 -R /etc/wireguard
+    systemctl enable wg-quick@wg0
 }
 }
 
 
 # Bash执行选项  kernel 升级内核  默认安装 wireguard
 # Bash执行选项  kernel 升级内核  默认安装 wireguard