mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-08-28 15:51:17 +00:00
Added dockerfile and entrypoint for basic compilation, moving to finalizing
This commit is contained in:
19
docker/entrypoint.sh
Normal file
19
docker/entrypoint.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
echo "Starting the WireGuard Dashboard."
|
||||
|
||||
outgoing=$(ip -o -4 route show to default | awk '{print $NF}')
|
||||
echo $outgoing
|
||||
|
||||
. ${WGDASH}/venv/bin/activate
|
||||
cd /opt/wireguardashboard/app/src
|
||||
bash ./wgd.sh start
|
||||
|
||||
if [ "$tz" != "Europe/Amsterdam" ]; then
|
||||
echo "Changing timezone..."
|
||||
ln -sf /usr/share/zoneinfo/$tz /etc/localtime
|
||||
fi
|
||||
|
||||
sleep 3s
|
||||
tail -f /opt/wireguardashboard/app/src/log/*.log
|
||||
|
||||
# Blocking command in case of erroring.
|
||||
sleep infinity
|
Reference in New Issue
Block a user