fix: incorrect root path in /etc/nginx/sites-available/mainsail #399
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/mainsailafter install would fix the issue.