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:
parent
1f27bde29e
commit
d62d307ea9
2 changed files with 9 additions and 9 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue