fix: incorrect root path in /etc/nginx/sites-available/mainsail #399

Open
opened 2023-11-19 00:39:16 +01:00 by JanuszSamborski · 0 comments
JanuszSamborski commented 2023-11-19 00:39:16 +01:00 (Migrated from github.com)

Linux Distribution

Dietpi

What happened

Mainsail site not loading

What did you expect to happen

Mainsail site loading

How to reproduce

Deploy mainsail with user's home path not located in /home/pi/mainsail directory

Additional information

As far as I can see root path for files hosted by nginx that are placed in /etc/nginx/sites-available/mainsail isn't updated - so nginx tries to load them.
Runningsed "s#root /home/pi#root $HOME#g" /etc/nginx/sites-available/mainsail after install would fix the issue.

### Linux Distribution Dietpi ### What happened Mainsail site not loading ### What did you expect to happen Mainsail site loading ### How to reproduce Deploy mainsail with user's home path not located in /home/pi/mainsail directory ### Additional information As far as I can see root path for files hosted by nginx that are placed in /etc/nginx/sites-available/mainsail isn't updated - so nginx tries to load them. Running`sed "s#root /home/pi#root $HOME#g" /etc/nginx/sites-available/mainsail` after install would fix the issue.
Sign in to join this conversation.