From 26a9bd7aba9536e0f53c26a845ee8dc79d2df8d9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 26 Jun 2022 00:12:08 +0200 Subject: [PATCH] Fix #9 --- scripts/upgrade | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 42a7d57..56fd700 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -96,15 +96,18 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= # BUILD PROSODY #================================================= -ynh_script_progression --message="Building Prosody..." +if [ "$upgrade_type" == "UPGRADE_APP" ] +then + ynh_script_progression --message="Building Prosody..." -pushd "$builddir" - ./configure --prefix=/usr - make - make install -popd + pushd "$builddir" + ./configure --prefix=/usr + make + make install + popd -ynh_secure_remove --file="$builddir" + ynh_secure_remove --file="$builddir" +fi #================================================= # UPDATE A CONFIG FILE