From 7a989b32742bdae836b9fbae554631c1565eb6aa Mon Sep 17 00:00:00 2001
From: Roxedus <me@roxedus.dev>
Date: Sat, 6 Mar 2021 01:10:34 +0100
Subject: [PATCH] Also catch 1969, move banner.

---
 root/etc/cont-init.d/10-adduser | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

diff --git a/root/etc/cont-init.d/10-adduser b/root/etc/cont-init.d/10-adduser
index 140e3a7..faa67f5 100644
--- a/root/etc/cont-init.d/10-adduser
+++ b/root/etc/cont-init.d/10-adduser
@@ -6,20 +6,6 @@ PGID=${PGID:-911}
 groupmod -o -g "$PGID" abc
 usermod -o -u "$PUID" abc
 
-if [ "$(date +%Y)" == "1970" ] && [ "$(uname -m)" == "armv7l" ]; then
-  echo '
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
-Your DockerHost is most likely running an outdated version of libseccomp
-
-To fix this, please visit https://docs.linuxserver.io/faq#libseccomp
-
-Some apps might not behave correctly without this
-
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-'
-fi
-
 echo '
 -------------------------------------
           _         ()
@@ -47,6 +33,23 @@ User uid:    $(id -u abc)
 User gid:    $(id -g abc)
 -------------------------------------
 "
+
+time32="$(date +%Y)"
+
+if [[ "${time32}" == "1970" || "${time32}" == "1969" ]] && [ "$(uname -m)" == "armv7l" ]; then
+  echo '
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+
+Your DockerHost is most likely running an outdated version of libseccomp
+
+To fix this, please visit https://docs.linuxserver.io/faq#libseccomp
+
+Some apps might not behave correctly without this
+
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+'
+fi
+
 chown abc:abc /app
 chown abc:abc /config
 chown abc:abc /defaults
-- 
GitLab