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