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:
parent
a2890538b3
commit
9dbb7408e2
3 changed files with 8 additions and 9 deletions
|
@ -29,7 +29,7 @@ MAILGUN_SECRET=
|
||||||
|
|
||||||
#POSTMARK_API_TOKEN=
|
#POSTMARK_API_TOKEN=
|
||||||
|
|
||||||
PHANTOMJS_BIN_PATH=/usr/local/bin/phantomjs
|
PHANTOMJS_BIN_PATH=__INSTALL_DIR__/phantomjs/bin/phantomjs
|
||||||
PHANTOMJS_SECRET=__PHANTOMJS_KEY__
|
PHANTOMJS_SECRET=__PHANTOMJS_KEY__
|
||||||
|
|
||||||
LOG=single
|
LOG=single
|
||||||
|
|
|
@ -9,15 +9,16 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
_install_phantomjs() {
|
_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 "$source_dir"
|
||||||
pushd "$tmpdir"
|
ynh_exec_warn_less DESTDIR="$destdir" ./configure
|
||||||
ynh_exec_warn_less ./configure && ynh_exec_warn_less make
|
ynh_exec_warn_less make -j "$(nproc)"
|
||||||
ynh_exec_warn_less make install
|
ynh_exec_warn_less make install
|
||||||
popd
|
popd
|
||||||
|
ynh_secure_remove --file="$source_dir"
|
||||||
ynh_secure_remove --file="$tmpdir"
|
|
||||||
}
|
}
|
||||||
#=================================================
|
#=================================================
|
||||||
# EXPERIMENTAL HELPERS
|
# EXPERIMENTAL HELPERS
|
||||||
|
|
|
@ -23,8 +23,6 @@ ynh_remove_fpm_config
|
||||||
# Remove a cron file
|
# Remove a cron file
|
||||||
ynh_secure_remove --file="/etc/cron.d/$app"
|
ynh_secure_remove --file="/etc/cron.d/$app"
|
||||||
|
|
||||||
ynh_secure_remove --file="/usr/local/bin/phantomjs"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue