1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

Upgrade ownCloud to 9.1.4 to address security vulnerabilities, refs #1111 (#1120)

* Move variable assignment up and do not use call arguments directly

* Upgrade ownCloud to latest patch release 9.1.4

also move owncloud hash to its own variable
This commit is contained in:
yeah 2017-03-26 20:20:27 +07:00 committed by Joshua Tauberer
parent 9c9cae2096
commit 6c3696a54a

View File

@ -29,13 +29,14 @@ if [ ! -f $STORAGE_ROOT/owncloud/config.php ] \
fi fi
InstallOwncloud() { InstallOwncloud() {
echo
echo "Upgrading to ownCloud version $1"
echo
version=$1 version=$1
hash=$2 hash=$2
echo
echo "Upgrading to ownCloud version $version"
echo
# Remove the current owncloud # Remove the current owncloud
rm -rf /usr/local/lib/owncloud rm -rf /usr/local/lib/owncloud
@ -85,7 +86,8 @@ InstallOwncloud() {
fi fi
} }
owncloud_ver=9.1.2 owncloud_ver=9.1.4
owncloud_hash=e637cab7b2ca3346164f3506b1a0eb812b4e841a
# Check if ownCloud dir exist, and check if version matches owncloud_ver (if either doesn't - install/upgrade) # Check if ownCloud dir exist, and check if version matches owncloud_ver (if either doesn't - install/upgrade)
if [ ! -d /usr/local/lib/owncloud/ ] \ if [ ! -d /usr/local/lib/owncloud/ ] \
@ -152,7 +154,7 @@ EOF
fi fi
fi fi
InstallOwncloud $owncloud_ver ba9b1cdb681b8a3607d928cbe56f52e3888d9296 InstallOwncloud $owncloud_ver $owncloud_hash
fi fi
# ### Configuring ownCloud # ### Configuring ownCloud