From 621558b8d4bc10b7170ff4e4bb07c81d4070ca52 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 8 Jan 2020 12:28:56 -0500 Subject: [PATCH] Hopefully change users in nodm.conf. --- files/files/usr/lib/F123-wrappers/chuser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/files/usr/lib/F123-wrappers/chuser.sh b/files/files/usr/lib/F123-wrappers/chuser.sh index 4c5641a..e35ff8a 100755 --- a/files/files/usr/lib/F123-wrappers/chuser.sh +++ b/files/files/usr/lib/F123-wrappers/chuser.sh @@ -78,7 +78,7 @@ echo "Writing /etc/cron.d/0chuser" | log cat << EOF | sudo tee /etc/cron.d/0chuser &> /dev/null SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin -@reboot root usermod -a -G $groups -m -d /home/$newUser -l $newUser $oldUser && sed -E -i "s/autologin +[a-zA-Z0-9-]+/autologin $newUser/g" /etc/systemd/system/getty@tty*.service.d/override.conf && sed -i -e "s#NODM_USER=.*#NODM_USER='$newUser'#" -e "s#NODM_XSESSION=.*#NODM_XSESSION='/home/$newUser/.xinitrc'#" /etc/nodm.conf; rm -f /etc/cron.d/0chuser;reboot +@reboot root usermod -a -G $groups -m -d /home/$newUser -l $newUser $oldUser && sed -i -e "s#NODM_USER=.*#NODM_USER='$newUser'#" -e "s#NODM_XSESSION=.*#NODM_XSESSION='/home/$newUser/.xinitrc'#" /etc/nodm.conf; rm -f /etc/cron.d/0chuser;reboot EOF