1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paperless-ngx_ynh.git synced 2024-09-03 19:56:33 +02:00

Silent build, holy if

This commit is contained in:
tituspijean 2024-02-12 17:18:19 +01:00
parent 1f27bde29e
commit d62d307ea9
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 9 additions and 9 deletions

View file

@ -63,13 +63,13 @@ popd
ynh_script_progression --message="Building Ghostscript dependency..." ynh_script_progression --message="Building Ghostscript dependency..."
pushd $install_dir/ghostscript pushd $install_dir/ghostscript
./configure ynh_exec_warn_less ./configure
make ynh_exec_warn_less make
make install ynh_exec_warn_less make install
popd popd
chown -R $app:$app "$install_dir/ghostscript" chown -R $app:$app "$install_dir/ghostscript"
chmod 755 $install_dir/ghostscript/bin/gs chmod 550 $install_dir/ghostscript/bin/gs
#================================================= #=================================================
# CREATE DATA DIRECTORY # CREATE DATA DIRECTORY

View file

@ -98,20 +98,20 @@ popd
#================================================= #=================================================
# BUILD GHOSTCRIPT SPECIFIC VERSION # 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 then
ynh_script_progression --message="Building Ghostscript dependency..." ynh_script_progression --message="Building Ghostscript dependency..."
ynh_setup_source --dest_dir="$install_dir/ghostscript" --source_id="gs" --full_replace ynh_setup_source --dest_dir="$install_dir/ghostscript" --source_id="gs" --full_replace
pushd $install_dir/ghostscript pushd $install_dir/ghostscript
./configure ynh_exec_warn_less ./configure
make ynh_exec_warn_less make
make install ynh_exec_warn_less make install
popd popd
chown -R $app:$app "$install_dir/ghostscript" chown -R $app:$app "$install_dir/ghostscript"
chmod 755 $install_dir/ghostscript/bin/gs chmod 550 $install_dir/ghostscript/bin/gs
fi fi
#================================================= #=================================================