diff --git a/conf/nginx.conf b/conf/nginx.conf index 1d16616..cbe969e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -location PATHTOCHANGEstatic/ { +location PATHTOCHANGE/static/ { alias /opt/yunohost/ihatemoney/src/budget/static/; } location PATHTOCHANGE { diff --git a/scripts/install b/scripts/install index e5e47e1..af2adf6 100755 --- a/scripts/install +++ b/scripts/install @@ -100,6 +100,9 @@ fi # Configure Nginx and reload sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf +# Fix double-slash for domain-root install +sed -i "s@location //@location /@" ../conf/nginx.conf + sudo install -o root -g root -m644 \ ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/ihatemoney.conf