mirror of
https://github.com/YunoHost-Apps/osticket_ynh.git
synced 2024-09-03 19:56:17 +02:00
[fix] set COMPOSER_HOME before building plugins
This commit is contained in:
parent
cadb10e497
commit
b5101b7e1c
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..."
|
ynh_print_info --message="Building plugins..."
|
||||||
|
|
||||||
|
mkdir -p "$final_path/include/plugins/build/.config/composer"
|
||||||
|
export COMPOSER_HOME="$final_path/include/plugins/build/.config/composer"
|
||||||
|
|
||||||
pushd "$final_path/include/plugins/build"
|
pushd "$final_path/include/plugins/build"
|
||||||
php make.php hydrate
|
php make.php hydrate
|
||||||
php -dphar.readonly=0 make.php build auth-cas
|
php -dphar.readonly=0 make.php build auth-cas
|
||||||
|
|
|
@ -82,14 +82,14 @@ ynh_abort_if_errors
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_print_info --message="Upgrading source files..."
|
ynh_print_info --message="Upgrading source files..."
|
||||||
|
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
|
|
||||||
mkdir $tmpdir/plugins
|
mkdir $tmpdir/plugins
|
||||||
rsync -a "$final_path/include/plugins" "$tmpdir/."
|
rsync -a "$final_path/include/plugins" "$tmpdir/."
|
||||||
rsync -a "$config_file" "$tmpdir/."
|
rsync -a "$config_file" "$tmpdir/."
|
||||||
ynh_secure_remove --file="$final_path"
|
ynh_secure_remove --file="$final_path"
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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"
|
||||||
ynh_setup_source --dest_dir="$final_path/include/plugins/build" --source_id="core-plugins"
|
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" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
|
mkdir -p "$final_path/include/plugins/build/.config/composer"
|
||||||
|
export COMPOSER_HOME="$final_path/include/plugins/build/.config/composer"
|
||||||
pushd "$final_path/include/plugins/build"
|
pushd "$final_path/include/plugins/build"
|
||||||
php make.php hydrate
|
php make.php hydrate
|
||||||
php -dphar.readonly=0 make.php build auth-cas
|
php -dphar.readonly=0 make.php build auth-cas
|
||||||
|
|
Loading…
Add table
Reference in a new issue