File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ setting_up_container
1313network_check
1414update_os
1515
16+ msg_info " Installing Dependencies"
17+ $STD apt-get install -y git
18+ msg_ok " Installed Dependencies"
19+
1620msg_info " Installing WireGuard"
1721$STD apt-get install -y wireguard wireguard-tools net-tools iptables
1822DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::=" --force-confnew" install -y iptables-persistent & > /dev/null
@@ -21,7 +25,7 @@ msg_ok "Installed WireGuard"
2125
2226read -r -p " ${TAB3} Would you like to add WGDashboard? <y/N> " prompt
2327if [[ " ${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
You can’t perform that action at this time.
0 commit comments