From 3ddcd4ea490f8e14469e60d46caa59acc0ad0ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sat, 3 Oct 2015 11:58:14 +0200 Subject: [PATCH] [enh]Add php gmp extention installation for api use --- scripts/install | 4 ++-- scripts/upgrade | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d9f202b..549c1c3 100755 --- a/scripts/install +++ b/scripts/install @@ -91,7 +91,7 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/freshrss.conf #install php5-cli sudo apt-get update -sudo apt-get install -y php5-cli +sudo apt-get install -y php5-cli php5-gmp #install update cron echo "*/10 * * * * www-data /usr/bin/php $final_path/app/actualize_script.php >/tmp/FreshRSS.log 2>&1" > /tmp/cronfreshrss sudo mv /tmp/cronfreshrss /etc/cron.d/freshrss @@ -100,7 +100,7 @@ sudo chown root /etc/cron.d/freshrss # Set permissions to freshrss directory sudo chown -R www-data: $final_path/data/ sudo chown -R www-data: $final_path/extensions/ -#skip api directory +#skip api directory sudo yunohost app setting freshrss skipped_uris -v /api/greader.php # Reload Nginx and regenerate SSOwat conf diff --git a/scripts/upgrade b/scripts/upgrade index ecd9d20..2381a7b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,4 +13,6 @@ sudo php $final_path/update-ynh.php sudo rm $final_path/update-ynh.php # Set permissions to freshrss directory sudo chown -R www-data: $final_path/data/ -sudo chown -R www-data: $final_path/extensions/ \ No newline at end of file +sudo chown -R www-data: $final_path/extensions/ + +sudo apt-get install -y php5-gmp