chore: fix docker (hopefully)

This commit is contained in:
DaanSelen
2025-12-12 15:17:25 +01:00
parent b695ccc5f9
commit cb9cb4a0b6
3 changed files with 35 additions and 19 deletions

View File

@@ -98,6 +98,7 @@ ensure_installation() {
# Setup WireGuard if needed
if [ -z "$(ls -A /etc/wireguard)" ]; then
cat /configs/wg0.conf.template
cp -a "/configs/wg0.conf.template" "/etc/wireguard/wg0.conf"
echo "Setting a secure private key."
@@ -192,6 +193,9 @@ start_and_monitor() {
[[ ! -d ${WGDASH}/src/log ]] && mkdir ${WGDASH}/src/log
${WGDASH}/src/venv/bin/gunicorn --config ${WGDASH}/src/gunicorn.conf.py
resolvconf -u
if [ $? -ne 0 ]; then
echo "Loading WGDashboard failed... Look above for details."
fi