diff --git a/update_nextcloud.sh b/update_nextcloud.sh index a2688be..7269252 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -478,7 +478,8 @@ fi INSTALL_DIR="${WEB_BASE_DIR}/nextcloud-${VERSION}" CURRENT_INSTALL_DIR="$(realpath ${WEB_BASE_DIR}/nextcloud)" -PRIOR_VERSION="$(basename $CURRENT_INSTALL_DIR | cut -d"-" -f2)" +#PRIOR_VERSION="$(basename $CURRENT_INSTALL_DIR | cut -d"-" -f2)" +PRIOR_VERSION="$(sudo -u $HTTP_USER /usr/local/php/bin/php ${WEB_BASE_DIR}/htdocs/occ --version | cut -d' ' -f2)" DATA_DIR=${WEB_BASE_DIR}/data-${VERSION} CURRENT_DATA_DIR="$(realpath ${WEB_BASE_DIR}/data-$PRIOR_VERSION)"