correction bug postun
This commit is contained in:
parent
bec955fa32
commit
47b30e9904
@ -72,7 +72,7 @@ desktop()
|
||||
DESKTOP=""
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $1 == 1 ];then
|
||||
# crée un utilisateur Lalis et enlève les droits de lecture/écriture/visibilité/exécution à others
|
||||
cp -f /usr/share/lalis/journald.conf /etc/systemd/
|
||||
getent passwd lalis
|
||||
@ -155,6 +155,7 @@ if [ ${?} -ne 0 ]; then
|
||||
echo -e "\nlalis rsync://lalis69.ddns.net:10073/mageia/lalis/$MGAVERSION/x86_64/media/core {\nupdate\n}" >>/etc/urpmi/urpmi.cfg
|
||||
echo "urpmi.update lalis" | at now +1 minutes
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun
|
||||
|
||||
@ -168,7 +169,7 @@ desktop()
|
||||
DESKTOP=""
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $1 == 0 ];then
|
||||
# supprime l'utilisateur Lalis
|
||||
echo "Suppression de l'utilisateur lalis (dossier personnel compris)"
|
||||
userdel -rf lalis
|
||||
@ -202,3 +203,4 @@ done
|
||||
# supprime le miroir lalis
|
||||
echo "suppression du dépôt lalis"
|
||||
echo "urpmi.removemedia lalis" | at now +1 minutes
|
||||
fi
|
||||
|
Reference in New Issue
Block a user