Subversion Repositories ALCASAR

Rev

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

Rev 2454 Rev 2474
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-version.sh 2454 2017-12-09 18:59:31Z tom.houdayer $
2
# $Id: alcasar-version.sh 2474 2017-12-30 02:00:04Z tom.houdayer $
3
 
3
 
4
# alcasar-version-list.sh
4
# alcasar-version-list.sh
5
# by Richard REY
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
 
Line 13... Line 13...
13
DNS_VERSION_L=`dig $SITE_VERSION txt | grep ^$SITE_VERSION | cut -d"\"" -f2`
13
DNS_VERSION_L=`dig $SITE_VERSION txt | grep ^$SITE_VERSION | cut -d"\"" -f2`
14
DNS_VERSION=`echo $DNS_VERSION_L|cut -d" " -f1`
14
DNS_VERSION=`echo $DNS_VERSION_L|cut -d" " -f1`
15
MAJ_DNS_VERSION=`echo $DNS_VERSION|cut -d"." -f1`
15
MAJ_DNS_VERSION=`echo $DNS_VERSION|cut -d"." -f1`
16
MIN_DNS_VERSION=`echo $DNS_VERSION|cut -d"." -f2`
16
MIN_DNS_VERSION=`echo $DNS_VERSION|cut -d"." -f2`
17
UPD_DNS_VERSION=`echo $DNS_VERSION|cut -d"." -f3`
17
UPD_DNS_VERSION=`echo $DNS_VERSION|cut -d"." -f3`
18
RUNNING_VERSION=`grep ^VERSION /usr/local/etc/alcasar.conf|cut -d'=' -f2`
18
RUNNING_VERSION=`grep ^VERSION= /usr/local/etc/alcasar.conf|cut -d'=' -f2`
19
MAJ_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f1`
19
MAJ_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f1`
20
MIN_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f2|cut -c1`
20
MIN_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f2|cut -c1`
21
UPD_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f3`
21
UPD_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f3`
22
 
22
 
23
#compare major number
23
#compare major number