From 8af7c7737c8925f7601f2af53840ebdda36905ca Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Thu, 3 Dec 2020 18:16:52 -0500 Subject: [PATCH] bugfix --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8b34abd..ef91382 100755 --- a/install.sh +++ b/install.sh @@ -50,12 +50,12 @@ sudo chmod +x /etc/containers/startup.sh # configure containers user name=containers uid=5000 -subrange="1000000:1000000000" -if ! getent group $name; then +subrange="1000000-1000000000" +if [[ ! $(getent group $name) ]]; then echo "Creating group '$name' ..." sudo groupadd -r -g $uid $name fi -if ! getent passwd $name; then +if [[ ! $(getent passwd $name) ]]; then echo "Creating user '$name' ..." sudo useradd -r -u $uid -p '*'-s /sbin/nologin -d /srv/vol -g $name $name fi