diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 9da383c75..430a50fa6 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -30,7 +30,7 @@ function update_script() { fi apt-get update apt-get -y upgrade - if [[ ! -d /etc/wgdashboard ]]; then + if [[ -d /etc/wgdashboard ]]; then sleep 2 cd /etc/wgdashboard/src ./wgd.sh update