jout de la détection du dossier desktop
This commit is contained in:
parent
ac42d4a12e
commit
d22ad318f5
@ -146,11 +146,11 @@ cp -f %{SOURCE7} %{buildroot}/usr/share/dist/desktop-files/default/
|
||||
/usr/share/dist/desktop-files/default/*
|
||||
|
||||
%post
|
||||
#desktop()
|
||||
#{
|
||||
# DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
|
||||
# DESKTOP=${DESKTOP##*}
|
||||
#}
|
||||
desktop()
|
||||
{
|
||||
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
|
||||
DESKTOP=${DESKTOP##*}
|
||||
}
|
||||
DESKTOP="Bureau"
|
||||
|
||||
mv -f /tmp/journald.conf /etc/systemd/
|
||||
@ -166,7 +166,7 @@ if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then
|
||||
fi
|
||||
|
||||
# Ajoute le fichier checklist.txt et test.desktop sur le bureau de l'utilisateur lalis
|
||||
#desktop /home/lalis
|
||||
desktop /home/lalis
|
||||
if ! [ -d "/home/lalis/$DESKTOP" ]; then
|
||||
/usr/bin/mkdir "/home/lalis/$DESKTOP"
|
||||
|
||||
@ -184,7 +184,7 @@ do
|
||||
getent passwd "$USER"
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ -d $i ]; then
|
||||
# desktop "/home/$i"
|
||||
desktop "/home/$i"
|
||||
if ! [ -d "$i/$DESKTOP" ]; then
|
||||
su -c "mkdir $i/Bureau" - "$USER"
|
||||
echo "su -c mkdir $i/Bureau - $USER"
|
||||
|
Reference in New Issue
Block a user