mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
Alternative testing.
This commit is contained in:
parent
ef028659d8
commit
f6e5d9675a
@ -22,9 +22,13 @@ ensure_installation() {
|
|||||||
cd "${WGDASH}"/src || exit
|
cd "${WGDASH}"/src || exit
|
||||||
./wgd.sh install
|
./wgd.sh install
|
||||||
|
|
||||||
|
echo "Generating some files..."
|
||||||
|
./wgd.sh start
|
||||||
|
./wgd.sh stop
|
||||||
|
|
||||||
echo "Looks like the installation succesfully moved over."
|
echo "Looks like the installation succesfully moved over."
|
||||||
else
|
else
|
||||||
echo "Looks like everything is present."
|
echo "Looks like everything is present. Or the directory is not empty."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This first step is to ensure the wg0.conf file exists, and if not, then its copied over from the ephemeral container storage.
|
# This first step is to ensure the wg0.conf file exists, and if not, then its copied over from the ephemeral container storage.
|
||||||
@ -106,9 +110,9 @@ set_envvars() {
|
|||||||
sed -i "s/^remote_endpoint = .*/remote_endpoint = ${public_ip}/" /opt/wireguarddashboard/src/wg-dashboard.ini
|
sed -i "s/^remote_endpoint = .*/remote_endpoint = ${public_ip}/" /opt/wireguarddashboard/src/wg-dashboard.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Restarting service for good measure"
|
#echo "Restarting service for good measure"
|
||||||
cd "${WGDASH}"/src || exit
|
#cd "${WGDASH}"/src || exit
|
||||||
./wgd.sh restart
|
#./wgd.sh restart
|
||||||
}
|
}
|
||||||
|
|
||||||
# === CORE SERVICES ===
|
# === CORE SERVICES ===
|
||||||
|
Loading…
Reference in New Issue
Block a user