Skip to content
Snippets Groups Projects
Commit 2cc24037 authored by Bob Mottram's avatar Bob Mottram
Browse files

maximum users variable

parent 2fd7f385
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment