relocate usermod

This commit is contained in:
Aiden McClelland
2023-03-08 08:22:25 -07:00
parent ca73a47785
commit 3ac94710fb

View File

@@ -4,7 +4,7 @@ set -e
# introduce start9 username and embassy as default password # introduce start9 username and embassy as default password
if ! awk -F: '{ print $1 }' /etc/passwd | grep start9 if ! awk -F: '{ print $1 }' /etc/passwd | grep start9
then then
usermod -l start9 -d /home/start9 -aG embassy -m pi usermod -l start9 -d /home/start9 -m pi
groupmod --new-name start9 pi groupmod --new-name start9 pi
echo start9:embassy | chpasswd echo start9:embassy | chpasswd
fi fi
@@ -42,6 +42,8 @@ systemctl stop tor
. /usr/lib/embassy/scripts/postinst . /usr/lib/embassy/scripts/postinst
usermod -aG embassy start9
systemctl enable embassyd.service embassy-init.service systemctl enable embassyd.service embassy-init.service
# . /usr/lib/embassy/scripts/enable-kiosk # . /usr/lib/embassy/scripts/enable-kiosk