1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja_ynh.git synced 2024-09-03 19:26:22 +02:00

Move phantomjs bin to install_dir

This commit is contained in:
Salamandar 2024-01-06 11:43:51 +01:00
parent a2890538b3
commit 9dbb7408e2
3 changed files with 8 additions and 9 deletions

View file

@ -29,7 +29,7 @@ MAILGUN_SECRET=
#POSTMARK_API_TOKEN=
PHANTOMJS_BIN_PATH=/usr/local/bin/phantomjs
PHANTOMJS_BIN_PATH=__INSTALL_DIR__/phantomjs/bin/phantomjs
PHANTOMJS_SECRET=__PHANTOMJS_KEY__
LOG=single

View file

@ -9,15 +9,16 @@
#=================================================
_install_phantomjs() {
tmpdir="$(mktemp -d)"
source_dir="$install_dir/phantomjs/source"
destdir="$install_dir/phantomjs"
ynh_setup_source --dest_dir="$source_dir" --source_id="phantomjs"
ynh_setup_source --dest_dir="$tmpdir" --source_id="phantomjs"
pushd "$tmpdir"
ynh_exec_warn_less ./configure && ynh_exec_warn_less make
pushd "$source_dir"
ynh_exec_warn_less DESTDIR="$destdir" ./configure
ynh_exec_warn_less make -j "$(nproc)"
ynh_exec_warn_less make install
popd
ynh_secure_remove --file="$tmpdir"
ynh_secure_remove --file="$source_dir"
}
#=================================================
# EXPERIMENTAL HELPERS

View file

@ -23,8 +23,6 @@ ynh_remove_fpm_config
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
ynh_secure_remove --file="/usr/local/bin/phantomjs"
#=================================================
# END OF SCRIPT
#=================================================