From 4ea3515fbbf3ec990fc082b1596d78eacd05a149 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Tue, 11 Mar 2014 15:02:21 +0100 Subject: [PATCH] Fix permission on nginx conf --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 4418973..1be8b28 100755 --- a/scripts/install +++ b/scripts/install @@ -28,8 +28,11 @@ sudo chmod 700 $final_path/{data,tmp} # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf -sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf -sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/zerobin.conf +sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx. +nginxconf=/etc/nginx/conf.d/$domain.d/zerobin.conf +sudo cp ../conf/nginx.conf $nginxconf +sudo chown root: $nginxconf +sudo chmod 600 $nginxconf sudo yunohost app setting zerobin is_public -v "$is_public" if [ $is_public = "Yes" ];