live-desktop.ks: restore homedir permissions same way the other spins do it

This commit is contained in:
Adam Williamson 2013-05-27 12:08:08 -07:00
parent 6260353320
commit b215e215dc
1 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,6 @@ FOE
# don't run gnome-initial-setup
mkdir ~liveuser/.config
touch ~liveuser/.config/gnome-initial-setup-done
chown -R liveuser:liveuser ~liveuser/.config
# make the installer show up
if [ -f /usr/share/applications/liveinst.desktop ]; then
@ -56,7 +55,6 @@ FOE
mkdir -p ~liveuser/.config/autostart
cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/
cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/
chown -R liveuser:liveuser /home/liveuser/.config/
fi
fi
@ -75,6 +73,10 @@ if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
fi
# make sure to set the right permissions and selinux contexts
chown -R liveuser:liveuser /home/liveuser/
restorecon -R /home/liveuser/
EOF
%end