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.
|
||||||
|
|
||||||
|
# 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.
|
# Files in cron.d must be 644 to work.
|
||||||
sudo "${sudoFlags[@]}" chmod 644 /etc/cron.d/0chuser
|
sudo "${sudoFlags[@]}" chmod 644 /etc/cron.d/0chuser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user