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

Cleanup after build

This commit is contained in:
tituspijean 2024-02-12 22:48:54 +01:00
parent ae55d77ae6
commit c16bcfac55
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 13 additions and 7 deletions

View file

@ -66,12 +66,15 @@ pushd $install_dir/ghostscript
ynh_exec_warn_less ./configure
ynh_exec_warn_less make
ynh_exec_warn_less make install
mv bin/ $install_dir/
popd
chown -R $app:$app "$install_dir/ghostscript"
chmod 550 $install_dir/ghostscript/bin/gs
ynh_secure_remove --file="$install_dir/ghostscript"
chmod -R o-rwx "$install_dir/bin"
chown -R $app:$app "$install_dir/bin"
chmod 550 $install_dir/gs
local_path=$install_dir/ghostscript/bin/:$PATH
local_path=$install_dir/bin/:$PATH
#=================================================
# CREATE DATA DIRECTORY

View file

@ -98,7 +98,7 @@ popd
#=================================================
# BUILD GHOSTCRIPT SPECIFIC VERSION
#=================================================
if ! dpkg --compare-versions "$($install_dir/ghostscript/bin/gs --version 2>/dev/null)" ge "10.02.1"
if ! dpkg --compare-versions "$($install_dir/bin/gs --version 2>/dev/null)" ge "10.02.1"
then
ynh_script_progression --message="Building Ghostscript dependency... (this will take a long time!)"
@ -108,13 +108,16 @@ then
ynh_exec_warn_less ./configure
ynh_exec_warn_less make
ynh_exec_warn_less make install
mv bin/ $install_dir/
popd
chown -R $app:$app "$install_dir/ghostscript"
chmod 550 $install_dir/ghostscript/bin/gs
ynh_secure_remove --file="$install_dir/ghostscript"
chmod -R o-rwx "$install_dir/bin"
chown -R $app:$app "$install_dir/bin"
chmod 550 $install_dir/bin/gs
fi
local_path=$install_dir/ghostscript/bin/:$PATH
local_path=$install_dir/bin/:$PATH
#=================================================
# UPDATE A CONFIG FILE