1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

[enh] ynh_script_progression all the things

This commit is contained in:
tituspijean 2020-04-21 09:07:21 +02:00
parent 70ea8ff9ed
commit ab6fbf15cd
3 changed files with 5 additions and 5 deletions

View file

@ -92,14 +92,14 @@ ynh_app_setting_set $app bazaar_extension $bazaar_extension
if [ "$(lsb_release --codename --short)" = "buster" ]; then if [ "$(lsb_release --codename --short)" = "buster" ]; then
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies" pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
else else
ynh_print_info --message="Installing php${php_version}..." ynh_script_progression --message="Installing php${php_version}..." --time --weight=1
ynh_install_php --phpversion="${php_version}" --package="$extra_pkg_dependencies" ynh_install_php --phpversion="${php_version}" --package="$extra_pkg_dependencies"
fi fi
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
ynh_print_info --message="Installing dependencies..." ynh_script_progression --message="Installing dependencies..." --time --weight=1
_ynh_install_app_dependencies "$pkg_dependencies" _ynh_install_app_dependencies "$pkg_dependencies"

View file

@ -81,7 +81,7 @@ chmod -R 0775 $final_path
if [ "$(lsb_release --codename --short)" = "buster" ]; then if [ "$(lsb_release --codename --short)" = "buster" ]; then
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies" pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
else else
ynh_print_info --message="Installing php${php_version}..." ynh_script_progression --message="Installing php${php_version}..." --time --weight=1
ynh_install_php --phpversion="${php_version}" --package="$extra_pkg_dependencies" ynh_install_php --phpversion="${php_version}" --package="$extra_pkg_dependencies"
fi fi

View file

@ -141,14 +141,14 @@ ynh_add_nginx_config
if [ "$(lsb_release --codename --short)" = "buster" ]; then if [ "$(lsb_release --codename --short)" = "buster" ]; then
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies" pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
else else
ynh_print_info --message="Upgrading php${php_version}..." ynh_script_progression --message="Upgrading php${php_version}..." --time --weight=1
ynh_install_php --phpversion="${php_version}" --package="$extra_pkg_dependencies" ynh_install_php --phpversion="${php_version}" --package="$extra_pkg_dependencies"
fi fi
#================================================= #=================================================
# UPGRADE DEPENDENCIES # UPGRADE DEPENDENCIES
#================================================= #=================================================
ynh_print_info --message="Upgrading dependencies..." ynh_script_progression --message="Upgrading dependencies..." --time --weight=1
_ynh_install_app_dependencies "$pkg_dependencies" _ynh_install_app_dependencies "$pkg_dependencies"