Unverified Commit 38c79630 authored by franck molle's avatar franck molle 🐧 Committed by GitHub

Merge pull request #11 from SambaEdu/wsusoffline2

Update wsusoffline-download.sh
parents 1b76458d 893d539e
......@@ -162,7 +162,7 @@ if [ $? != 0 ]; then
SENDMAIL "WsusOffline : Reinstallation du xml qui est absent de WPKG."
fi
WSUSOFFLINEROOT=http://svn.tice.ac-caen.fr/svn/SambaEdu3/wpkg-packages-ng/files/wsusoffline
WSUSOFFLINEROOT=http://svn.tice.ac-caen.fr/svn/SambaEdu3/wpkg-packages-ng/files/wsusoffline2
TEMOIN=/var/se3/unattended/install/wsusoffline/WsusOffline-Versions.txt
NEWTEMOIN=/tmp/wsusofflineversions.txt
wget -O $NEWTEMOIN $WSUSOFFLINEROOT/WsusOffline-Versions.txt? >/dev/null 2>&1
......@@ -332,6 +332,27 @@ else
exit 1
fi
echo "" >>$MAIL
echo "Telechargement du programme de test des mises a jour installees checkversion.cmd :" >>$MAIL
wget $WSUSOFFLINEROOT/checkversion.cmd? -O /var/se3/unattended/install/packages/wsusoffline/checkversion.cmd >>$MAIL 2>&1
if [ -e /var/se3/unattended/install/packages/wsusoffline/checkversion.cmd ]; then
SIZEFILE=`ls -la /var/se3/unattended/install/packages/wsusoffline/checkversion.cmd | awk '{print $5}'`
else
SIZEFILE="0"
fi
# echo "SIZEFILE=$SIZEFILE"
if [ ! "$SIZEFILE" == "0" ]; then
echo "" >>$MAIL
echo "OK : Telechargement de checkversion.cmd" >>$MAIL
# SENDMAIL "WsusOffline : Une nouvelle version du fichier de test des mises a jour installees checkversion.cmd a ete telechargee."
else
echo "" >>$MAIL
echo "ERREUR : Telechargement du fichier checkversion.cmd" >>$MAIL
echo "" >>$MAIL
echo "Sans intervention de votre part, une nouvelle tentative sera executee des demain a partir de 20h45" >>$MAIL
SENDMAIL "WsusOffline ERREUR : La nouvelle version du programme de test des mises a jour installees checkversion.cmd n'a pas pu etre telechargee."
exit 1
fi
echo "" >>$MAIL
echo "Telechargement de la console de commande cmd64.exe pour les ordinateurs en 64 bits :" >>$MAIL
wget $WSUSOFFLINEROOT/cmd64.exe? -O /var/se3/unattended/install/packages/wsusoffline/cmd64.exe >>$MAIL 2>&1
if [ -e /var/se3/unattended/install/packages/wsusoffline/cmd64.exe ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment