mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-13 02:35:13 +08:00
16 lines
No EOL
373 B
Bash
16 lines
No EOL
373 B
Bash
#!/bin/bash
|
|
|
|
# if [ -z "$(ls -A /etc/wireguard)" ]; then
|
|
# mv /wg0.conf /etc/wireguard
|
|
# echo "Moved conf file to /etc/wireguard"
|
|
# else
|
|
# rm wg0.conf
|
|
# echo "Removed unneeded conf file"
|
|
# fi
|
|
|
|
# wg-quick up wg0
|
|
chmod u+x /opt/wgdashboard/wgd.sh
|
|
if [ ! -f "/opt/wgdashboard/wg-dashboard.ini" ]; then
|
|
/opt/wgdashboard/wgd.sh install
|
|
fi
|
|
/opt/wgdashboard/wgd.sh debug |