1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00

Move variable assignment up and do not use call arguments directly

This commit is contained in:
Jan Schulz-Hofen 2017-03-25 17:11:06 +07:00
parent 86621392f6
commit db9c25f4ac

View File

@ -29,12 +29,13 @@ if [ ! -f $STORAGE_ROOT/owncloud/config.php ] \
fi
InstallOwncloud() {
echo
echo "Upgrading to ownCloud version $1"
echo
version=$1
hash=$2
version=$1
hash=$2
echo
echo "Upgrading to ownCloud version $version"
echo
# Remove the current owncloud
rm -rf /usr/local/lib/owncloud