mirror of
https://github.com/YunoHost-Apps/osticket_ynh.git
synced 2024-09-03 19:56:17 +02:00
Merge pull request #8 from tituspijean/testing
[fix] set COMPOSER_HOME before building plugins
This commit is contained in:
commit
968bbaf2fa
2 changed files with 7 additions and 2 deletions
|
@ -139,6 +139,9 @@ admin_mail=$(ynh_user_get_info $admin 'mail')
|
|||
#=================================================
|
||||
ynh_print_info --message="Building plugins..."
|
||||
|
||||
mkdir -p "$final_path/include/plugins/build/.config/composer"
|
||||
COMPOSER_HOME="$final_path/include/plugins/build/.config/composer"
|
||||
|
||||
pushd "$final_path/include/plugins/build"
|
||||
php make.php hydrate
|
||||
php -dphar.readonly=0 make.php build auth-cas
|
||||
|
|
|
@ -82,14 +82,14 @@ ynh_abort_if_errors
|
|||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_print_info --message="Upgrading source files..."
|
||||
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
|
||||
mkdir $tmpdir/plugins
|
||||
rsync -a "$final_path/include/plugins" "$tmpdir/."
|
||||
rsync -a "$config_file" "$tmpdir/."
|
||||
ynh_secure_remove --file="$final_path"
|
||||
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
ynh_setup_source --dest_dir="$final_path/include/plugins/build" --source_id="core-plugins"
|
||||
|
@ -150,6 +150,8 @@ ynh_print_info --message="Building plugins..."
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
mkdir -p "$final_path/include/plugins/build/.config/composer"
|
||||
COMPOSER_HOME="$final_path/include/plugins/build/.config/composer"
|
||||
pushd "$final_path/include/plugins/build"
|
||||
php make.php hydrate
|
||||
php -dphar.readonly=0 make.php build auth-cas
|
||||
|
|
Loading…
Add table
Reference in a new issue