]> git.ipfire.org Git - ipfire-2.x.git/blob - updates/1.4.5/setup
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@29 ea5c0bd1-69bd-2848...
[ipfire-2.x.git] / updates / 1.4.5 / setup
1 #!/bin/bash
2
3 UPGRADEVERSION="1.4.5"
4 PREVIOUSVERSION="1.4.4"
5 echo "This is the $UPGRADEVERSION update patch for IPCop $PREVIOUSVERSION installing."
6
7 CURRENTVERSION=`cat /etc/issue | awk '{ print $2 }' | sed -e 's/v//'`
8
9 if [ "$CURRENTVERSION" != "$PREVIOUSVERSION" ]; then
10 echo "You are not running IPCop v$PREVIOUSVERSION for this patch to install."
11 echo "Aborting installation."
12 exit -1
13 fi
14
15
16 /bin/sed -i -e "s+= '1.4.*$+= '$UPGRADEVERSION';+" /var/ipcop/general-functions.pl
17 # Fix typo in PrintActualLeases subroutine
18 /bin/sed -i -e 's/colourbox/table2colour/' /var/ipcop/header.pl
19 /bin/tar -zxpf patch.tar.gz -C /
20