Bugfix/fix syntax change user (#1260)

* quote users output

* change away from 'users' to /etc/passwd
This commit is contained in:
Keagan McClelland
2022-02-23 17:49:34 -07:00
committed by GitHub
parent ad5be18bb4
commit 0ac52ff8ef

View File

@@ -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