Update alpine-wireguard-install.sh

This commit is contained in:
CanbiZ 2025-03-25 14:04:20 +01:00
parent e659b4495a
commit cf3601b4ab

View File

@ -76,9 +76,19 @@ stderr_logfile=/var/log/wg-dashboard.err.log
stdout_logfile=/var/log/wg-dashboard.out.log
EOF
rc-service supervisor restart
rc-update add supervisor default
msg_ok "Created Supervisor Service for WGDashboard"
if [[ ! -f /etc/supervisord.conf ]]; then
cat <<EOF > /etc/supervisord.conf
[supervisord]
nodaemon=true
[include]
files = /etc/supervisord.d/*.ini
EOF
fi
msg_info "Starting Supervisor Daemon"
nohup supervisord -c /etc/supervisord.conf &>/dev/null &
msg_ok "Started Supervisor Daemon"
fi