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

Hack around system-wide PHP 7.4

This commit is contained in:
Mateusz 2024-05-12 19:24:54 +02:00
parent 81f05be6eb
commit 5a420c4531
2 changed files with 13 additions and 4 deletions

View file

@ -55,7 +55,11 @@ ynh_script_progression --message="Building Movim..."
# Install composer
ynh_install_composer
ynh_exec_warn_less ynh_composer_exec --commands="movim:migrate"
# hack to make composer use php8.2 rather than system-default 7.4
ln -s $(which php$phpversion) $install_dir/php
ynh_exec_warn_less ynh_exec_as $app env PATH=$install_dir:$PATH ynh_composer_exec --commands="movim:migrate"
rm $install_dir/php
ynh_exec_as "$app" "php$phpversion" "$install_dir/daemon.php" config --username="$admin" --password="$password" --quiet
#=================================================

View file

@ -65,9 +65,14 @@ ynh_script_progression --message="Building $app..."
ynh_exec_warn_less ynh_install_composer
ynh_exec_warn_less ynh_composer_exec --commands="config --global discard-changes true --quiet"
ynh_exec_warn_less ynh_composer_exec --commands="update --no-interaction --quiet"
ynh_exec_warn_less ynh_composer_exec --commands="movim:migrate --quiet"
# hack to make composer use php8.2 rather than system-default 7.4
ln -s $(which php$phpversion) $install_dir/php
ynh_exec_warn_less ynh_exec_as $app env PATH=$install_dir:$PATH ynh_composer_exec --commands="config --global discard-changes true --quiet"
ynh_exec_warn_less ynh_exec_as $app env PATH=$install_dir:$PATH ynh_composer_exec --commands="update --no-interaction --quiet"
ynh_exec_warn_less ynh_exec_as $app env PATH=$install_dir:$PATH ynh_composer_exec --commands="movim:migrate --quiet"
rm $install_dir/php
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS