From 16763221db0ab3e82591d15b9e048d51790da346 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Thu, 22 Dec 2016 01:08:38 +0000 Subject: [PATCH] Add --assume-yes for apt-get install dependencies --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 3348943..5fd70d6 100755 --- a/scripts/install +++ b/scripts/install @@ -43,7 +43,7 @@ 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 +sudo apt-get install --quiet --assume-yes 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 f9d61e3..a6677ac 100755 --- a/scripts/restore +++ b/scripts/restore @@ -27,7 +27,7 @@ runninguser=$(ynh_app_setting_get $app runninguser) # || ynh_die "Path not available: ${domain}${path}" # We install dependencies -sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl +sudo apt-get install --quiet --assume-yes php5-gd php5-sqlite php5-json php5-intl # Restore sources & data sudo mkdir -p $final_path diff --git a/scripts/upgrade b/scripts/upgrade index 2730a45..255245a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,7 +25,7 @@ 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 +sudo apt-get install --quiet --assume-yes 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