mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-03-18 18:14:02 +00:00
20 lines
469 B
Bash
20 lines
469 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Lets wait for the DNS container to start
|
|
sleep 5
|
|
|
|
# Starts each WireGuard configuration file found in /etc/wireguard
|
|
shopt -s nullglob
|
|
config_files=(/etc/wireguard/*.conf)
|
|
if [ ${#config_files[@]} -gt 0 ]; then
|
|
for f in "${config_files[@]}"; do
|
|
wg-quick up "$(basename "${f}" .conf)"
|
|
done
|
|
fi
|
|
|
|
# Django startup
|
|
python manage.py migrate --noinput
|
|
python manage.py collectstatic --noinput
|
|
exec python manage.py runserver 0.0.0.0:8000
|