4
PREVIOUSVERSION="1.4.4"
5
echo "This is the $UPGRADEVERSION update patch for IPCop $PREVIOUSVERSION installing."
7
CURRENTVERSION=`cat /etc/issue | awk '{ print $2 }' | sed -e 's/v//'`
9
if [ "$CURRENTVERSION" != "$PREVIOUSVERSION" ]; then
10
echo "You are not running IPCop v$PREVIOUSVERSION for this patch to install."
11
echo "Aborting installation."
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 /