Mercurial > code > home > repos > infra
changeset 196:c409ea5a1d5c
don't tie up 80/443 with an unwanted nginx instance
author | drewp@bigasterisk.com |
---|---|
date | Wed, 14 Jun 2023 19:46:16 -0700 |
parents | ee6374edfc06 |
children | e7cca674cdb5 |
files | packages.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages.py Wed Jun 14 19:45:35 2023 -0700 +++ b/packages.py Wed Jun 14 19:46:16 2023 -0700 @@ -42,6 +42,10 @@ if host.name in ['pipe', 'prime'] or is_pi: apt.packages(packages=['mandb'], present=False) +def no_unwanted_services(): + systemd.service(service='nginx', enabled=False, running=False) + + kw = dict(latest=True) @@ -87,3 +91,5 @@ # move to another file? files.template(src="templates/pigpiod.service.j2", dest=f"/etc/systemd/system/pigpiod.service") systemd.service(service='pigpiod', daemon_reload=True, enabled=True) + +no_unwanted_services() \ No newline at end of file