mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
Bugfix/fix syntax change user (#1260)
* quote users output * change away from 'users' to /etc/passwd
This commit is contained in:
committed by
GitHub
parent
ad5be18bb4
commit
0ac52ff8ef
@@ -4,7 +4,7 @@
|
||||
set -e
|
||||
|
||||
# introduce start9 username and embassy as default password
|
||||
if ! [ $(users) = "start9" ]
|
||||
if ! awk -F: '{ print $1}' /etc/passwd | grep start9
|
||||
then
|
||||
usermod -l start9 -d /home/start9 -m pi
|
||||
groupmod --new-name start9 pi
|
||||
|
||||
Reference in New Issue
Block a user