Alternative testing.

This commit is contained in:
Dselen 2024-08-26 15:53:53 -05:00
parent ef028659d8
commit f6e5d9675a

View File

@ -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 ===