Update the linger file for the new user name.

This commit is contained in:
Storm Dragon 2023-08-22 02:57:57 -04:00
parent f114eb4859
commit f8ba1bd645

View File

@ -56,6 +56,10 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
EOF
# Heredocument end.
# Files in cron.d must be 644 to work.
sudo "${sudoFlags[@]}" chmod 644 /etc/cron.d/0chuser
# Make sure sound services start for the new user.
mkdir -p /var/lib/systemd/linger
sudo mv -v "/var/lib/systemd/linger/$oldUser" "/var/lib/systemd/linger/$newUser"
# Files in cron.d must be 644 to work.
sudo "${sudoFlags[@]}" chmod 644 /etc/cron.d/0chuser