From fc131c1b3b8d97981a02397c961dd68bd5cdb390 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:24:15 +0100 Subject: [PATCH] Update upgrade: fix boring bug because of apt install piped into jq --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index fc5495f..ab3ab3a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,6 +89,9 @@ function list_installed_apps_not_compatible_with_future_version() local core_apps_in_current_version=$(mktemp) local nextcloud_destination_appcatalog=$(mktemp) + # Run a first "dummy" command just to make sure we have the appropriate php dependencies installed, + # otherwise this creates funky stuff when tweaking the apt deps because the next command is piped into jq ... + exec_occ -V # List installed apps exec_occ app:list --output json | jq -r ".enabled | keys[]" | sort > $installed_apps # Fetch Nextcloud list of core apps from their github repo for the current version