test
This commit is contained in:
parent
88a981fad9
commit
f4aba94c82
@ -176,7 +176,7 @@ desktop()
|
|||||||
|
|
||||||
mv -f /tmp/journald.conf /etc/systemd/
|
mv -f /tmp/journald.conf /etc/systemd/
|
||||||
getent passwd lalis
|
getent passwd lalis
|
||||||
if [ $? -ne 0 ]; then
|
if [ ${?} -ne 0 ]; then
|
||||||
adduser lalis
|
adduser lalis
|
||||||
chmod -R o-rwX /home/lalis
|
chmod -R o-rwX /home/lalis
|
||||||
passwd lalis << EOF
|
passwd lalis << EOF
|
||||||
@ -210,7 +210,7 @@ for i in /home/*
|
|||||||
do
|
do
|
||||||
USER=`basename "$i"`
|
USER=`basename "$i"`
|
||||||
getent passwd "$USER"
|
getent passwd "$USER"
|
||||||
if [ $? -eq 0 ]; then
|
if [ ${?} -eq 0 ]; then
|
||||||
if [ -d $i ]; then
|
if [ -d $i ]; then
|
||||||
desktop "/$i"
|
desktop "/$i"
|
||||||
echo $DESKTOP
|
echo $DESKTOP
|
||||||
@ -234,3 +234,12 @@ fi
|
|||||||
if [ ! -e /etc/nfs.conf ]; then
|
if [ ! -e /etc/nfs.conf ]; then
|
||||||
systemctl disable network-up
|
systemctl disable network-up
|
||||||
fi
|
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
|
||||||
|
Reference in New Issue
Block a user