mirror of
https://github.com/YunoHost-Apps/osticket_ynh.git
synced 2024-09-03 19:56:17 +02:00
Merge branch 'testing' into example_ynh
This commit is contained in:
commit
cc4e8763d2
2 changed files with 7 additions and 2 deletions
|
@ -137,6 +137,9 @@ admin_mail=$(ynh_user_get_info $admin 'mail')
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Building plugins..."
|
ynh_script_progression --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"
|
pushd "$final_path/include/plugins/build"
|
||||||
php${phpversion} make.php hydrate
|
php${phpversion} make.php hydrate
|
||||||
php${phpversion} -dphar.readonly=0 make.php build auth-cas
|
php${phpversion} -dphar.readonly=0 make.php build auth-cas
|
||||||
|
|
|
@ -67,14 +67,14 @@ ynh_abort_if_errors
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --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"
|
||||||
|
@ -136,6 +136,8 @@ ynh_script_progression --message="Building plugins..."
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
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"
|
pushd "$final_path/include/plugins/build"
|
||||||
php${phpversion} make.php hydrate
|
php${phpversion} make.php hydrate
|
||||||
php${phpversion} -dphar.readonly=0 make.php build auth-cas
|
php${phpversion} -dphar.readonly=0 make.php build auth-cas
|
||||||
|
|
Loading…
Add table
Reference in a new issue