From 0e6e603fb051ad074a2b8e51bb60bfa33e6488a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 15 Mar 2024 16:12:29 +0100 Subject: [PATCH] Fix migration with missing package_check --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index b9b8ad1..b172ab0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,10 @@ if [[ "$cluster" == "cluster" ]] || [[ "$cluster" == "no" ]]; then ynh_app_setting_set --app="$app" --key="cluster" --value="$cluster" fi +if [ ! -d "$install_dir/package_check" ]; then + ynh_exec_as "$app" git clone https://github.com/YunoHost/package_check "$install_dir/package_check" +fi + # Remove Pythonz ynh_secure_remove --file="$install_dir/.pythonz"