From 380535d209793863cba800c2046e9e00d4969d84 Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Wed, 8 Jun 2022 02:36:09 +0200
Subject: [PATCH] fix: correct default shell

---
 daemon/entrypoint.sh    | 4 ++--
 wireguard/Dockerfile    | 2 ++
 wireguard/entrypoint.sh | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/daemon/entrypoint.sh b/daemon/entrypoint.sh
index 2cb0ec1..7b50266 100755
--- a/daemon/entrypoint.sh
+++ b/daemon/entrypoint.sh
@@ -1,5 +1,5 @@
-#!/bin/bash
-set -euo pipefail
+#!/bin/sh
+set -eu
 
 rm /tmp/rtorrent.log
 touch /tmp/rtorrent.log
diff --git a/wireguard/Dockerfile b/wireguard/Dockerfile
index 4356df3..c5999cf 100644
--- a/wireguard/Dockerfile
+++ b/wireguard/Dockerfile
@@ -9,6 +9,8 @@ RUN rm /sbin/iptables /sbin/ip6tables
 RUN ln -s /sbin/ip6tables-nft /sbin/ip6tables
 RUN ln -s /sbin/iptables-nft /sbin/iptables
 
+ENV LOCAL_NETWORK=""
+
 COPY entrypoint.sh /entrypoint.sh
 VOLUME ["/wireguard.conf"]
 ENTRYPOINT ["/entrypoint.sh"]
diff --git a/wireguard/entrypoint.sh b/wireguard/entrypoint.sh
index eb852b9..af86aa6 100755
--- a/wireguard/entrypoint.sh
+++ b/wireguard/entrypoint.sh
@@ -1,5 +1,5 @@
-#!/bin/bash
-set -euo pipefail
+#!/bin/sh
+set -eu
 
 if [ -n "$LOCAL_NETWORK" ]; then
   gateway=$(ip route list match 0.0.0.0 | grep -v tun0 | cut -d ' ' -f 3)
-- 
GitLab