mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-03 09:44:26 +02:00
Initial commit
This commit is contained in:
commit
ed55724808
2505 changed files with 1136655 additions and 0 deletions
16
init.sh
Normal file
16
init.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue