From 63938508c82e1a34dc530f8b4290bcf23b76b9bb Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Mon, 28 Mar 2022 20:25:05 +0300 Subject: [PATCH] check for group --- build/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/run.sh b/build/run.sh index f13cd88..31dce36 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 -if ! getent group box; then +if getent group box; then + echo Group already added +else groupadd -g 997 box fi