浏览代码

Update wireguard-v5.sh

tweak
tteckster 2 年之前
父节点
当前提交
48babec3bd
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ct/wireguard-v5.sh

+ 4 - 0
ct/wireguard-v5.sh

@@ -325,6 +325,10 @@ msg_ok "Update Successfull"
 exit
 fi
 if [ "$UPD" == "2" ]; then
+  if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then
+    msg_error "Existing WGDashboard Installation Found!";
+    exit 
+  fi
 IP=$(hostname -I | awk '{print $1}')
 msg_info "Installing pip3"
 apt-get install -y python3-pip &>/dev/null