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

Update install

This commit is contained in:
jarod5001 2022-05-04 22:44:36 +02:00 committed by GitHub
parent 926dfd7bf0
commit 9973d722e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,19 +155,16 @@ ynh_add_systemd_config
#================================================= #=================================================
ynh_script_progression --message="Building Movim..." ynh_script_progression --message="Building Movim..."
pushd $final_path
# ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" # ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
curl -sS https://getcomposer.org/installer \ curl -sS https://getcomposer.org/installer | php${phpversion}
| COMPOSER_HOME="$final_path/.composer" \
php${phpversion} -- --quiet --install-dir="$final_path" \
|| ynh_die "Unable to install Composer."
# ynh_composer_exec --workdir="$final_path" --commands="movim:migrate" --phpversion="$phpversion" # ynh_composer_exec --workdir="$final_path" --commands="movim:migrate" --phpversion="$phpversion"
COMPOSER_HOME="$final_path/.composer" \ php${phpversion} composer.phar install
php${phpversion} "$final_path/composer.phar" "install" \
-d "$final_path" --quiet --no-interaction
ynh_exec_as $app php$phpversion $final_path/daemon.php config --username=$admin --password=$password --quiet --phpversion="$phpversion" ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password --quiet --phpversion="$phpversion"
popd
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================