Compare commits

..

No commits in common. "cfc6ca13effd79cdd8a27c31bb171f2b37f88491" and "a5c5628bed898f4ed0d23a220dd40656dab7da61" have entirely different histories.

1 changed files with 7 additions and 5 deletions

View File

@ -63,13 +63,15 @@ if [ "$UPD" == "1" ]; then
msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
msg_ok "Updated Successfully"
exit
fi
if [ "$UPD" == "2" ]; then
if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then
msg_info "Updating WGDashboard"
cd /etc/wgdashboard/src
chmod u+x wgd.sh
./wgd.sh update
yes "Y" | sudo ./wgd.sh update &>/dev/null
sudo chmod u+x wgd.sh
msg_ok "Updated Successfully"
exit
fi
@ -89,9 +91,9 @@ WGDREL=$(curl -s https://api.github.com/repos/donaldzou/WGDashboard/releases/lat
git clone -b ${WGDREL} https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard &>/dev/null
cd /etc/wgdashboard/src
chmod u+x wgd.sh
./wgd.sh install &>/dev/null
chmod -R 755 /etc/wireguard
sudo chmod u+x wgd.sh
sudo ./wgd.sh install &>/dev/null
sudo chmod -R 755 /etc/wireguard
msg_ok "Installed WGDashboard"
msg_info "Creating Service"