Update Dockerfile
install wireguard copy wireguard config added wireguarg config Update Dockerfile Update Dockerfile a cleanup
This commit is contained in:
parent
02f8e58e47
commit
3cced1d334
8 changed files with 22 additions and 2 deletions
10
root/etc/s6-overlay/s6-rc.d/init-wireguard/run
Executable file
10
root/etc/s6-overlay/s6-rc.d/init-wireguard/run
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# Bring up WireGuard if not already up
|
||||
if ! ip link show dev wg0 > /dev/null 2>&1; then
|
||||
wg-quick up wg0
|
||||
else
|
||||
sleep 60
|
||||
fi
|
||||
|
||||
# Exit after running
|
||||
exit 0
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-wireguard/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-wireguard/type
Normal file
|
|
@ -0,0 +1 @@
|
|||
longrun
|
||||
0
root/etc/s6-overlay/s6-rc.d/init-wireguard/up
Normal file
0
root/etc/s6-overlay/s6-rc.d/init-wireguard/up
Normal file
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Wait for WireGuard to be up
|
||||
|
||||
echo "Starting Plex Media Server. . . (you can ignore the libusb_init error)"
|
||||
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)
|
||||
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=$(uname -r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue