From 5bf6ca3cff681e597ca5fab02f4344a89c1c9e41 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Tue, 21 Dec 2021 20:52:12 +0200 Subject: [PATCH] add group only if missing --- build/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/run.sh b/build/run.sh index 037778f..f13cd88 100755 --- a/build/run.sh +++ b/build/run.sh @@ -24,7 +24,9 @@ chown -R root:root /etc/ssh/ chmod 0644 /etc/ssh/* chmod 0600 /etc/ssh/*key -groupadd -g 997 box +if ! getent group box; then + groupadd -g 997 box +fi chown root:root /home chmod 0755 /home