aboutsummaryrefslogtreecommitdiff
path: root/bin/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/install.sh')
-rwxr-xr-xbin/install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/install.sh b/bin/install.sh
index 25c5dc8..c2e2cdf 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -106,13 +106,13 @@ tput sgr0
tput setaf 8
printf '%s\n' " - Creating user 'lux-neo'..."
username="lux-neo"
-egrep "^$username" /etc/passwd >/dev/null
+sudo egrep "^$username" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
else
#pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
- useradd -m $username
+ sudo useradd -m $username
[ $? -eq 0 ] && echo "User has been added to system!" || { printf "\n\nInstall failed.\n"; exit 1; }
fi
tput sgr0