Subversion Repositories ALCASAR

Rev

Rev 519 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 519 Rev 672
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/bash
2
# $Id: alcasar-version-list.sh 393 2011-01-02 10:00:53Z franck $
2
# $Id: alcasar-version-list.sh 393 2011-01-02 10:00:53Z franck $
3
 
3
 
4
# alcasar-version-list.sh
4
# alcasar-version-list.sh
5
# by Rexy
5
# by Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
8
# permet de connaitre la version d'ALCASAR en production/stable pour permettre une éventuelle MAJ
8
# récupère les versions d'ALCASAR (stable et développement)
-
 
9
# download the ALCASAR versions (stable / dev)
-
 
10
 
9
VERSION="/var/www/html/VERSION"
11
VERSION="/var/www/html/VERSION"
10
SITE_VERSION="version.alcasar.info"
12
SITE_VERSION="version.alcasar.info"
11
MAJ="False"
13
MAJ="False"
12
DNS_VERSION_L=`dig $SITE_VERSION txt | grep ^$SITE_VERSION | cut -d"\"" -f2`
14
DNS_VERSION_L=`dig $SITE_VERSION txt | grep ^$SITE_VERSION | cut -d"\"" -f2`
13
DNS_VERSION=`echo $DNS_VERSION_L|cut -d" " -f1`
15
DNS_VERSION=`echo $DNS_VERSION_L|cut -d" " -f1`