diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-15 18:26:00 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-15 18:31:17 +0300 |
commit | 1086361c35f533f11a35706de0a526f9a509bab0 (patch) | |
tree | 34a64d9d5747e46d2f016a9f7845e11c528630b6 /bin | |
parent | b675d61e61e11f14581eb82faeb5407cf61e0137 (diff) |
ncp-update-nc: Remove redundant debian version compatibility check
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ncp-update-nc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index 223d3190..bee2b1d6 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -50,7 +50,7 @@ fi if [[ "$MAJOR_NEW" -ge 24 ]] && [[ "$(lsb_release -r)" =~ .*10 ]] then - echo -e "Nextcloud version greater than 23 are not supported with Debian 10 (Buster). Please run ncp-dist-upgrade." + echo -e "NCP doesn't support Nextcloud versions greater than 23 with Debian 10 (Buster). Please run ncp-dist-upgrade." exit 1 fi @@ -61,12 +61,6 @@ echo "Current Nextcloud version $CURRENT" echo "Available Nextcloud version $VER" is_more_recent_than "${VER}" "${CURRENT}" || { echo "Nothing to update"; exit 1; } # we want `exit 1` so the autoupdate doesn't notify success in this case -if ! is_more_recent_than "24.0.0" "${VER}" && is_more_recent_than "7.4.0" "${PHPVER}.0" -then - echo -e "Upgrading to Nextcloud versions > 23 requires the latest debian and PHP versions. Please run \`ncp-dist-upgrade\` and then run the update again." - exit 1 -fi - # make sure that cron.php is not running and there are no pending jobs # https://github.com/nextcloud/server/issues/10949 pgrep -cf cron.php &>/dev/null && { pkill -f cron.php; sleep 3; } |