1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-26 09:03:09 +00:00

Fix file ownership for the username change

This commit is contained in:
Jeremy Katz 2008-10-02 11:07:33 -04:00
parent ca2f8913a2
commit 7ccf72a59f
8 changed files with 10 additions and 10 deletions

View File

@ -122,7 +122,7 @@ fi
# make fedora user use KDE
echo "startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession
chown fedora:fedora /home/liveuser/.xsession
chown liveuser:liveuser /home/liveuser/.xsession
# set up autologin for user fedora
sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc
@ -138,7 +138,7 @@ cat > /home/liveuser/.kde/share/config/kickoffrc << MENU_EOF
[Favorites]
FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/liveinst.desktop
MENU_EOF
chown -R fedora:fedora /home/liveuser/.kde/
chown -R liveuser:liveuser /home/liveuser/.kde/
# show liveinst.desktop on and in menu
sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop

View File

@ -20,5 +20,5 @@ timezone Europe/Lisbon
mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/
chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end

View File

@ -190,7 +190,7 @@ fi
# make fedora user use KDE
echo "startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession
chown fedora:fedora /home/liveuser/.xsession
chown liveuser:liveuser /home/liveuser/.xsession
# set up autologin for user fedora
sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc

View File

@ -21,6 +21,6 @@ timezone Europe/Zurich
mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui sg-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/
chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end

View File

@ -21,6 +21,6 @@ timezone Europe/Berlin
mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/
chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end

View File

@ -21,5 +21,5 @@ timezone Europe/Lisbon
mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/
chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end

View File

@ -96,7 +96,7 @@ fi
# make fedora user use KDE
echo "startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession
chown fedora:fedora /home/liveuser/.xsession
chown liveuser:liveuser /home/liveuser/.xsession
# set up autologin for user fedora
sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc
@ -112,7 +112,7 @@ cat > /home/liveuser/.kde/share/config/kickoffrc << MENU_EOF
[Favorites]
FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop,/usr/share/applications/liveinst.desktop
MENU_EOF
chown -R fedora:fedora /home/liveuser/.kde/
chown -R liveuser:liveuser /home/liveuser/.kde/
# show liveinst.desktop on and in menu
sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop

View File

@ -158,7 +158,7 @@ Language=en
EOF
cat >> /etc/rc.d/init.d/livesys << EOF
chown -R fedora:fedora /home/liveuser
chown -R liveuser:liveuser /home/liveuser
# disable screensaver locking
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null