linux - remove sudo command when reloading nginx

This commit is contained in:
fl0ppy-d1sk 2023-10-26 15:52:58 +02:00
parent 35d16233cd
commit 4e820f6de2
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500
3 changed files with 3 additions and 3 deletions

View file

@ -97,7 +97,7 @@ try:
else:
if (
run(
["sudo", join(sep, "usr", "sbin", "nginx"), "-s", "reload"],
[join(sep, "usr", "sbin", "nginx"), "-s", "reload"],
stdin=DEVNULL,
stderr=STDOUT,
check=False,

View file

@ -194,7 +194,7 @@ if __name__ == "__main__":
sleep(5)
proc = run(
["sudo", join(sep, "usr", "sbin", "nginx"), "-s", "reload"],
[join(sep, "usr", "sbin", "nginx"), "-s", "reload"],
stdin=DEVNULL,
stderr=STDOUT,
)

View file

@ -548,7 +548,7 @@ if __name__ == "__main__":
# Start nginx
logger.info("Starting nginx ...")
proc = subprocess_run(
[join(sep, "usr", "sbin", "nginx")],
[join(sep, "usr", "sbin", "nginx"), "-e", "/var/log/bunkerweb/error.log"],
stdin=DEVNULL,
stderr=STDOUT,
env=env.copy(),