From 8cfbe5de98218665776214643665d8d116643b79 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 27 Sep 2015 02:54:32 +0200 Subject: [PATCH] [fix] nginx conf sed were bad --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 18d6107..812c2ec 100644 --- a/scripts/install +++ b/scripts/install @@ -24,11 +24,13 @@ sudo chown -R www-data: $final_path sudo yunohost app setting noalyss version -v "6.9.0.0" if [[ "$path" == "" ]]; then - sed -i "s@LOCATIONTOCHANGE@/@g" ../conf/nginx.conf + sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf else - sed -i "s@LOCATIONTOCHANGE@$path@g" ../conf/nginx.conf + sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf fi +sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/noalyss.conf sed -i "s@NAMETOCHANGE@noalyss@g" ../conf/php-fpm.conf