Skip to content

Commit 02a1a73

Browse files
authored
WGDashboard: Revert back to old update method (#7500)
* Revert back to git clone * Add git to sh
1 parent 2494af7 commit 02a1a73

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ct/wireguard.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ function update_script() {
2828
msg_error "No ${APP} Installation Found!"
2929
exit
3030
fi
31+
if ! dpkg -s git >/dev/null 2>&1; then
32+
msg_info "Installing git"
33+
$STD apt-get update
34+
$STD apt-get install -y git
35+
msg_ok "Installed git"
36+
fi
3137
apt-get update
3238
apt-get -y upgrade
3339
if [[ -d /etc/wgdashboard ]]; then

install/wireguard-install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ setting_up_container
1313
network_check
1414
update_os
1515

16+
msg_info "Installing Dependencies"
17+
$STD apt-get install -y git
18+
msg_ok "Installed Dependencies"
19+
1620
msg_info "Installing WireGuard"
1721
$STD apt-get install -y wireguard wireguard-tools net-tools iptables
1822
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confnew" install -y iptables-persistent &>/dev/null
@@ -21,7 +25,7 @@ msg_ok "Installed WireGuard"
2125

2226
read -r -p "${TAB3}Would you like to add WGDashboard? <y/N> " prompt
2327
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
24-
fetch_and_deploy_gh_release "wgdashboard" "donaldzou/WGDashboard" "tarball" "latest" "/etc/wgdashboard"
28+
git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard
2529

2630
msg_info "Installing WGDashboard"
2731
cd /etc/wgdashboard/src

0 commit comments

Comments
 (0)