mirror of https://github.com/tteck/Proxmox.git
Update wireguard-install.sh
This commit is contained in:
parent
b118060a0f
commit
9f8910144f
|
@ -108,8 +108,8 @@ WGDREL=$(curl -s https://api.github.com/repos/donaldzou/WGDashboard/releases/lat
|
||||||
| grep "tag_name" \
|
| grep "tag_name" \
|
||||||
| awk '{print substr($2, 2, length($2)-3) }') \
|
| awk '{print substr($2, 2, length($2)-3) }') \
|
||||||
|
|
||||||
git clone -b ${WGDREL} https://github.com/donaldzou/WGDashboard.git /ect/wgdashboard &>/dev/null
|
git clone -b ${WGDREL} https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard &>/dev/null
|
||||||
cd /ect/wgdashboard/src
|
cd /etc/wgdashboard/src
|
||||||
sudo chmod u+x wgd.sh
|
sudo chmod u+x wgd.sh
|
||||||
sudo ./wgd.sh install &>/dev/null
|
sudo ./wgd.sh install &>/dev/null
|
||||||
sudo chmod -R 755 /etc/wireguard
|
sudo chmod -R 755 /etc/wireguard
|
||||||
|
@ -121,8 +121,8 @@ echo "[Unit]
|
||||||
After=netword.service
|
After=netword.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/ect/wgdashboard/src
|
WorkingDirectory=/etc/wgdashboard/src
|
||||||
ExecStart=/usr/bin/python3 /ect/wgdashboard/src/dashboard.py
|
ExecStart=/usr/bin/python3 /etc/wgdashboard/src/dashboard.py
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue