diff --git a/src/freedombone-adduser b/src/freedombone-adduser index 5281292c18afc9bc71e7c493bb417aa637561f68..12f3e7c3533d88365aa55c9ca33ca85b50b653f2 100755 --- a/src/freedombone-adduser +++ b/src/freedombone-adduser @@ -31,6 +31,8 @@ PROJECT_NAME='freedombone' export TEXTDOMAIN=${PROJECT_NAME}-adduser export TEXTDOMAINDIR="/usr/share/locale" +MAXIMUM_USERS=10 + CONFIGURATION_FILE="$HOME/${PROJECT_NAME}.cfg" UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*" @@ -77,7 +79,7 @@ fi no_of_users=$(find /home/ -maxdepth 1 -type d | grep -Fxv "/home/go" | grep -Fxv "/home/gogs" | grep -Fxv "/home/pihole" | grep -Fxv "/home/" | wc -l) # shellcheck disable=SC2086 -if [ $no_of_users -ge 10 ]; then +if [ $no_of_users -ge $MAXIMUM_USERS ]; then echo $"Maximum number of users reached" exit 4 fi