mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-21 21:25:26 +00:00
Fix file ownership for the username change
This commit is contained in:
parent
ca2f8913a2
commit
7ccf72a59f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user