diff --git a/SPECS/task-lalis.spec b/SPECS/task-lalis.spec index 1731f62..40ba9d4 100755 --- a/SPECS/task-lalis.spec +++ b/SPECS/task-lalis.spec @@ -176,7 +176,7 @@ desktop() mv -f /tmp/journald.conf /etc/systemd/ getent passwd lalis -if [ $? -ne 0 ]; then +if [ ${?} -ne 0 ]; then adduser lalis chmod -R o-rwX /home/lalis passwd lalis << EOF @@ -210,7 +210,7 @@ for i in /home/* do USER=`basename "$i"` getent passwd "$USER" - if [ $? -eq 0 ]; then + if [ ${?} -eq 0 ]; then if [ -d $i ]; then desktop "/$i" echo $DESKTOP @@ -234,3 +234,12 @@ fi if [ ! -e /etc/nfs.conf ]; then systemctl disable network-up fi +ARCH=`uname -i` +U=`uname -r` +MGAVERSION=${U##*.mga} +#adding lalis mirror +grep -q 'lalis rsync://lalis69.ddns.net:10073/mageia/lalis/' /etc/urpmi/urpmi.cfg +if [ ${?} -ne 0 ]; then + echo -e "\nlalis rsync://lalis69.ddns.net:10073/mageia/lalis/8/x86_64/media/core {\n}" >>/etc/urpmi/urpmi.cfg + urpmi.update lalis +fi