diff --git a/ct/alpine-wireguard.sh b/ct/alpine-wireguard.sh index 8da805d80..e6e36baf7 100644 --- a/ct/alpine-wireguard.sh +++ b/ct/alpine-wireguard.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-1}" var_os="${var_os:-alpine}" var_version="${var_version:-3.22}" var_unprivileged="${var_unprivileged:-1}" +var_tun="${var_tun:-1}" header_info "$APP" variables diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 38a7bd444..056c1453d 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-4}" var_os="${var_os:-debian}" var_version="${var_version:-12}" var_unprivileged="${var_unprivileged:-1}" +var_tun="${var_tun:-1}" header_info "$APP" variables @@ -20,20 +21,20 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /etc/wireguard ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - apt-get update - apt-get -y upgrade - sleep 2 - cd /etc/wgdashboard/src - ./wgd.sh update - ./wgd.sh start + header_info + check_container_storage + check_container_resources + if [[ ! -d /etc/wireguard ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + apt-get update + apt-get -y upgrade + sleep 2 + cd /etc/wgdashboard/src + ./wgd.sh update + ./wgd.sh start + exit } start @@ -43,4 +44,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} WGDashboard Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:10086${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:10086${CL}"