From 4f63d96338a6c4be3b678afea1104c0cfd252d54 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 2 Oct 2021 10:55:24 +0200 Subject: [PATCH] update_nextcloud.sh: use 'occ' to get current version of netxcloud installation. --- update_nextcloud.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)"