diff --git a/scripts/_common.sh b/scripts/_common.sh index 3ae3995..487bb6e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,5 +1,11 @@ #!/bin/bash +#================================================= +# COMMON VARIABLES +#================================================= + +pkg_dependencies="php-cli php-mbstring php-xml" + #================================================= # EXPERIMENTAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 7a4c85d..cf7883e 100644 --- a/scripts/install +++ b/scripts/install @@ -54,7 +54,7 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url #================================================= ynh_script_progression --message="Installing dependencies..." --weight=9 -ynh_install_app_dependencies php5-cli +ynh_install_app_dependencies $pkg_dependencies #================================================= # CREATE A MYSQL DATABASE diff --git a/scripts/restore b/scripts/restore index 0745fa6..36132c1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -6,7 +6,7 @@ # IMPORT GENERIC HELPERS #================================================= -# source ../settings/scripts/_common.sh +source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers #================================================= @@ -40,6 +40,12 @@ test ! -d $final_path \ #================================================= # STANDARD RESTORATION STEPS +#================================================= +# INSTALL DEPENDENCIES +#================================================= + +ynh_install_app_dependencies $pkg_dependencies + #================================================= # RESTORE THE NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 03d2033..83f8556 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,6 +73,12 @@ ynh_secure_remove --file="/etc/cron.d/$app" # Normalize the URL path syntax path_url=$(ynh_normalize_url_path --path_url=$path_url) +#================================================= +# INSTALL DEPENDENCIES +#================================================= + +ynh_install_app_dependencies $pkg_dependencies + #================================================= # STANDARD UPGRADE STEPS #=================================================