From: Gilles E. <ges...@us...> - 2004-12-30 22:56:24
|
Update of /cvsroot/ipcop/ipcop/updates/1.4.3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3386/updates/1.4.3 Added Files: Tag: IPCOP_v1_4_0 setup Log Message: add again updates/1.4.3/setup --- NEW FILE: setup --- #!/bin/sh UPGRADEVERSION="1.4.3" PREVIOUSVERSION="1.4.2" echo "This is the $UPGRADEVERSION update patch for IPCop $PREVIOUSVERSION installing." CURRENTVERSION=`cat /etc/issue | awk '{ print $2 }' | sed -e 's/v//'` if [ "$CURRENTVERSION" != "$PREVIOUSVERSION" -a "$CURRENTVERSION" != "$UPGRADEVERSION" ]; then echo "You are not running IPCop v$PREVIOUSVERSION for this patch to install." echo "Aborting installation." exit -1 fi /bin/sed -i -e "s+= '1.4.*$+= '$UPGRADEVERSION';+" /var/ipcop/header.pl /bin/tar -zxpf patch.tar.gz -C / # Change tar.gz to tgz.gpg in language files. # Completes fix for SF Bug 1077494 for file in /var/ipcop/langs/*.pl do sed -i -e '/to install an update/s/.tar.gz/.tgz.gpg/' $file done |