Update the linger file for the new user name.
This commit is contained in:
parent
f114eb4859
commit
f8ba1bd645
@ -56,6 +56,10 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|||||||
EOF
|
EOF
|
||||||
# Heredocument end.
|
# Heredocument end.
|
||||||
|
|
||||||
# Files in cron.d must be 644 to work.
|
# Make sure sound services start for the new user.
|
||||||
sudo "${sudoFlags[@]}" chmod 644 /etc/cron.d/0chuser
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user