From 706dc5faca30d841be9be05cf757e72525540344 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Thu, 18 Oct 2018 12:48:35 +0200 Subject: :hammer: Fix permission issue --- bin/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3