Lilina is at 4.0.0.
[htmlpurifier-web.git] / phorum-update.sh
blobf0e2b4b7d10450c6b94bbb0390affb6ac16e0a72
1 #!/bin/bash
2 VERSION="$1"
3 if [ "$VERSION" = "" ]
4 then
5 echo "Please specify version to upgrade to."
6 exit
7 fi
9 # Download necessary files
10 DIR="phorum-$VERSION"
11 FILE="$DIR.tar.gz"
12 wget "http://www.phorum.org/downloads/$FILE"
13 tar -xzf "$FILE"
14 rm "$FILE"
15 rm -r phorum-original
16 mv "$DIR" phorum-original
18 # Install the updates, with patches
19 sh phorum-patch.sh
20 sh phorum-skin-patch.sh