diff --git a/scripts/install b/scripts/install index 211c5cc..3348943 100755 --- a/scripts/install +++ b/scripts/install @@ -42,6 +42,8 @@ ynh_app_setting_set "$app" finalnginxconf "$finalnginxconf" finalphpconf="/etc/php5/fpm/pool.d/${app}.conf" ynh_app_setting_set "$app" finalphpconf "$finalphpconf" +# We install dependencies +sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl # Creation of folder #sudo rm -rf $final_path diff --git a/scripts/restore b/scripts/restore index 81254da..f9d61e3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -26,6 +26,9 @@ runninguser=$(ynh_app_setting_get $app runninguser) #sudo yunohost app checkurl "${domain}${path}" -a "$app" \ # || ynh_die "Path not available: ${domain}${path}" +# We install dependencies +sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl + # Restore sources & data sudo mkdir -p $final_path sudo cp -a ./sources/* $final_path/ diff --git a/scripts/upgrade b/scripts/upgrade index 3a47e53..2730a45 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,6 +24,9 @@ finalnginxconf=$(ynh_app_setting_get $app finalnginxconf) finalphpconf=$(ynh_app_setting_get $app finalphpconf) runninguser=$(ynh_app_setting_get $app runninguser) +# We install dependencies +sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl + # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf