1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

[fix] fix static path for nginx conf

Was broken since 00243d4
This commit is contained in:
Jocelyn Delalande 2017-06-21 13:33:49 +02:00
parent bb40c91db7
commit e04ee9c0f2
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,4 @@
location PATHTOCHANGEstatic/ { location PATHTOCHANGE/static/ {
alias /opt/yunohost/ihatemoney/src/budget/static/; alias /opt/yunohost/ihatemoney/src/budget/static/;
} }
location PATHTOCHANGE { location PATHTOCHANGE {

View file

@ -100,6 +100,9 @@ fi
# Configure Nginx and reload # Configure Nginx and reload
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf 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 \ sudo install -o root -g root -m644 \
../conf/nginx.conf /etc/nginx/conf.d/$domain.d/ihatemoney.conf ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/ihatemoney.conf