From 5a0f8811d5e7b1db9aab3602d02e6db273589978 Mon Sep 17 00:00:00 2001 From: abeudin Date: Tue, 27 May 2014 12:04:01 +0200 Subject: [PATCH] Update install --- scripts/install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index fed4c64..9d5c9d7 100644 --- a/scripts/install +++ b/scripts/install @@ -53,8 +53,13 @@ sudo cp ../conf/searx.ini /etc/uwsgi/apps-available/ sudo ln -s /etc/uwsgi/apps-available/searx.ini /etc/uwsgi/apps-enabled/ # Modify Nginx configuration file and copy it to Nginx conf directory -sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf -sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/searx.conf +sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf* +if [ $path != "/" ]; +then + sudo cp ../conf/nginx.conf-noroot /etc/nginx/conf.d/$domain.d/searx.conf +else + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/searx.conf +fi # Fix permission #sudo chmod 755 /etc/searx/