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" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null apt-get -y upgrade &>/dev/null
msg_ok "Updated Successfully"
exit exit
fi fi
if [ "$UPD" == "2" ]; then if [ "$UPD" == "2" ]; then
if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then
msg_info "Updating WGDashboard"
cd /etc/wgdashboard/src cd /etc/wgdashboard/src
chmod u+x wgd.sh yes "Y" | sudo ./wgd.sh update &>/dev/null
./wgd.sh update sudo chmod u+x wgd.sh
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
fi 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 git clone -b ${WGDREL} https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard &>/dev/null
cd /etc/wgdashboard/src cd /etc/wgdashboard/src
chmod u+x wgd.sh sudo chmod u+x wgd.sh
./wgd.sh install &>/dev/null sudo ./wgd.sh install &>/dev/null
chmod -R 755 /etc/wireguard sudo chmod -R 755 /etc/wireguard
msg_ok "Installed WGDashboard" msg_ok "Installed WGDashboard"
msg_info "Creating Service" msg_info "Creating Service"