Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 49 → Rev 50

/scripts/sbin/alcasar-version-list.sh
0,0 → 1,22
#!/bin/sh
 
# $Id $
# permet de connaitre la versin d'ALCASAR en production/stable pour permettre une éventuelle MAJ
NEW_VERSION="/var/www/html/VERSION-ONLINE"
VERSION="/var/www/html/VERSION"
SITE_VERSION="version.alcasar.info"
 
MAJ=`dig $SITE_VERSION txt | grep TXT | awk '{printf $5}'`
#echo $MAJ
cat $MAJ | sed -e 's/^".*$//g'
echo $MAJ
 
VERS_actuelle=` cat $VERSION | awk '{printf $1}'`
#echo $VERS_actuelle
exit 0
if ( $VERS_actuelle <> $MAJ )
then
echo "Mise à jour disponible" > $NEW_VERSION
else
echo "Vos disposez de la dernière MAJ stable" > $NEW_VERSION
fi
Property changes:
Added: svn:eol-style
+LF
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property
Added: svn:keywords
+"Id Author Date"
\ No newline at end of property