|
|
|
@ -244,6 +244,16 @@ else
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create some missing directories
|
|
|
|
|
mkdir -p /var/lib/lightdm
|
|
|
|
|
chown lightdm:lightdm /var/lib/lightdm
|
|
|
|
|
chmod 750 /var/lib/lightdm
|
|
|
|
|
|
|
|
|
|
mkdir -p /var/lib/usermetrics
|
|
|
|
|
chown usermetrics:usermetrics /var/lib/usermetrics
|
|
|
|
|
chmod 750 /var/lib/usermetrics
|
|
|
|
|
|
|
|
|
|
# Record the current state for later comparison
|
|
|
|
|
for file in /etc/passwd /etc/shadow /etc/group /etc/gshadow; do
|
|
|
|
|
rm -f ${file}-
|
|
|
|
|