check for group

This commit is contained in:
2022-03-28 20:25:05 +03:00
parent 5bf6ca3cff
commit 63938508c8

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
if ! getent group box; then if getent group box; then
echo Group already added
else
groupadd -g 997 box groupadd -g 997 box
fi fi