chiefwigms / picobrew_pico

MIT License
149 stars 63 forks source link

Issue 199 - allow for automatic reconfiguration of nginx configuration #285

Closed tmack8001 closed 3 years ago

tmack8001 commented 3 years ago

Leveraging the post git upgrade script and the new source controlled ngnix configuration we can more easily modify nginx configurations on server update.

I want to test this script on a raspberrypi to verify syntax and such works thus leaving as a draft to prevent merging.

tmack8001 commented 3 years ago

I have verified this latest script will modify the correct files as appropriate.

ls -ltr /etc/nginx/sites-available
total 4
-rw-r--r-- 1 root root 2412 Apr 16 16:36 picobrew.com.conf.bak
lrwxrwxrwx 1 root root   43 Apr 16 16:36 picobrew.com.conf -> /picobrew_pico/scripts/pi/picobrew.com.conf

and following executions will return a "nothing to do here"

image

and after the -q for grep

image