~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to updates/1.4.5/setup

  • Committer: ipfire
  • Date: 2006-02-15 21:15:54 UTC
  • Revision ID: git-v1:cd1a2927226c734d96478e12bb768256fb64a06a


git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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