From 620da86e0868b3fd79bd3b12058d1885fbce595e Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 15 Oct 2019 20:53:30 -0600 Subject: [PATCH] add ability to add users / groups --- boxctl.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/boxctl.sh b/boxctl.sh index 8d39467..0c27f16 100755 --- a/boxctl.sh +++ b/boxctl.sh @@ -187,6 +187,40 @@ EOF done fi +if [ -f ./groups ]; then + msg 0 "adding $(wc -l groups | awk '{print $1 " " $2}')" + for group in $(cat groups); do + local _group _gid + read _group _gid <