From d62d307ea9d2b8e181533e825f26b369b5959e12 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 12 Feb 2024 17:18:19 +0100 Subject: [PATCH] Silent build, holy if --- scripts/install | 8 ++++---- scripts/upgrade | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index d28a2ea..89f16eb 100755 --- a/scripts/install +++ b/scripts/install @@ -63,13 +63,13 @@ popd ynh_script_progression --message="Building Ghostscript dependency..." pushd $install_dir/ghostscript - ./configure - make - make install + ynh_exec_warn_less ./configure + ynh_exec_warn_less make + ynh_exec_warn_less make install popd chown -R $app:$app "$install_dir/ghostscript" -chmod 755 $install_dir/ghostscript/bin/gs +chmod 550 $install_dir/ghostscript/bin/gs #================================================= # CREATE DATA DIRECTORY diff --git a/scripts/upgrade b/scripts/upgrade index 914e689..0f9267c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,20 +98,20 @@ popd #================================================= # BUILD GHOSTCRIPT SPECIFIC VERSION #================================================= -if [ ! -f $install_dir/ghostscript/bin/gs ] && [ grep -q "10.02.1" $($install_dir/ghostscript/bin/gs -v) ] +if [[ ! -f $install_dir/ghostscript/bin/gs ]] && grep -q "10.02.1" $($install_dir/ghostscript/bin/gs -v) then ynh_script_progression --message="Building Ghostscript dependency..." ynh_setup_source --dest_dir="$install_dir/ghostscript" --source_id="gs" --full_replace pushd $install_dir/ghostscript - ./configure - make - make install + ynh_exec_warn_less ./configure + ynh_exec_warn_less make + ynh_exec_warn_less make install popd chown -R $app:$app "$install_dir/ghostscript" - chmod 755 $install_dir/ghostscript/bin/gs + chmod 550 $install_dir/ghostscript/bin/gs fi #=================================================