Accept command line parameters.

This commit is contained in:
Albert Cervera i Areny 2021-08-04 18:15:51 +02:00
parent e017b86a46
commit 37573af187
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ if [ ! -f "$userConfFinalPath" ]; then
cat "$userConfPath" | grep -v -e '^$' > "$userConfFinalPath"
fi
for user in "$@"; do
echo "Creating user $user"
echo "$user" >> "$userConfFinalPath"
done
# Append users from arguments to final config
if [ ! -z "$USER" ]; then
for user in "$USER"; do