mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-07 17:56:18 +00:00
Updated requirement.txt and wgd.sh
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Flask==2.0.1
|
Flask
|
||||||
tinydb==4.3.0
|
tinydb
|
||||||
ifcfg==0.21
|
ifcfg
|
||||||
icmplib==3.0.1
|
icmplib
|
||||||
flask-qrcode==3.0.0
|
flask-qrcode
|
@@ -53,9 +53,14 @@ update_wgd() {
|
|||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
printf "| Shutting down Wireguard Dashboard... |\n"
|
printf "| Shutting down Wireguard Dashboard... |\n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
|
stop_wgd
|
||||||
printf "| Downloading %s from GitHub... |\n" "$new_ver"
|
printf "| Downloading %s from GitHub... |\n" "$new_ver"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
|
git stash > /dev/null 2>&1
|
||||||
git pull https://github.com/donaldzou/wireguard-dashboard.git $new_ver --force > /dev/null 2>&1
|
git pull https://github.com/donaldzou/wireguard-dashboard.git $new_ver --force > /dev/null 2>&1
|
||||||
|
printf "%s\n" "$dashes"
|
||||||
|
printf "| Installing latest Python dependencies |\n"
|
||||||
|
python3 -m pip install -r requirements.txt
|
||||||
printf "| Update Successfully! |\n"
|
printf "| Update Successfully! |\n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
printf "| Now you can start the dashboard with >> sh wgd.sh start |\n"
|
printf "| Now you can start the dashboard with >> sh wgd.sh start |\n"
|
||||||
|
Reference in New Issue
Block a user