Update repo URL (#10872)

This commit is contained in:
Slaviša Arežina
2026-01-17 03:14:44 +01:00
committed by GitHub
parent eeeb80bc36
commit 6a02fcaecd
3 changed files with 11 additions and 12 deletions

View File

@@ -28,20 +28,19 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
if ! dpkg -s git >/dev/null 2>&1; then
msg_info "Installing git" ensure_dependencies git
$STD apt update
$STD apt install -y git msg_info "Updating LXC"
msg_ok "Installed git" $STD apt update
fi $STD apt upgrade -y
apt update
apt -y upgrade
if [[ -d /etc/wgdashboard ]]; then if [[ -d /etc/wgdashboard ]]; then
sleep 2 sleep 2
cd /etc/wgdashboard/src cd /etc/wgdashboard/src
./wgd.sh update $STD ./wgd.sh update
./wgd.sh start $STD ./wgd.sh start
fi fi
msg_ok "Updated LXC"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit
} }

View File

@@ -54,7 +54,7 @@ if [[ "$INSTALL_WGD" =~ ^[Yy]$ ]]; then
python3-dev python3-dev
msg_ok "Installed additional dependencies for WGDashboard" msg_ok "Installed additional dependencies for WGDashboard"
msg_info "Installing WGDashboard" msg_info "Installing WGDashboard"
git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard git clone -q https://github.com/WGDashboard/WGDashboard.git /etc/wgdashboard
cd /etc/wgdashboard/src cd /etc/wgdashboard/src
chmod u+x wgd.sh chmod u+x wgd.sh
$STD ./wgd.sh install $STD ./wgd.sh install

View File

@@ -25,7 +25,7 @@ msg_ok "Installed WireGuard"
read -r -p "${TAB3}Would you like to add WGDashboard? <y/N> " prompt read -r -p "${TAB3}Would you like to add WGDashboard? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard git clone -q https://github.com/WGDashboard/WGDashboard.git /etc/wgdashboard
msg_info "Installing WGDashboard" msg_info "Installing WGDashboard"
cd /etc/wgdashboard/src cd /etc/wgdashboard/src