aboutsummaryrefslogtreecommitdiff
path: root/bin/install.sh
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-10-18 12:48:35 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-10-18 12:48:35 +0200
commit706dc5faca30d841be9be05cf757e72525540344 (patch)
treee1a1f874a340a41c8db3efebe299d0f7418cd68f /bin/install.sh
parent0a91009c97ff8b28822c1b20e7568bddfdb43e7e (diff)
downloadLuxcena-Neo-706dc5faca30d841be9be05cf757e72525540344.tar.gz
Luxcena-Neo-706dc5faca30d841be9be05cf757e72525540344.zip
:hammer: Fix permission issue
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