add group only if missing

This commit is contained in:
Ville Rantanen
2021-12-21 20:52:12 +02:00
parent 9917db1e85
commit 5bf6ca3cff

View File

@@ -24,7 +24,9 @@ chown -R root:root /etc/ssh/
chmod 0644 /etc/ssh/* chmod 0644 /etc/ssh/*
chmod 0600 /etc/ssh/*key chmod 0600 /etc/ssh/*key
groupadd -g 997 box if ! getent group box; then
groupadd -g 997 box
fi
chown root:root /home chown root:root /home
chmod 0755 /home chmod 0755 /home