From f574a11d89202afcf18168f6dd245670e9d08d0d Mon Sep 17 00:00:00 2001 From: bajman Date: Sun, 8 Jun 2025 00:05:24 -0400 Subject: [PATCH] Prevent unintended execution when imported --- stackdash_menu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stackdash_menu.py b/stackdash_menu.py index a99a540..43a3c28 100644 --- a/stackdash_menu.py +++ b/stackdash_menu.py @@ -1324,4 +1324,5 @@ def oauthcompose(): oauthcompose = subprocess.run('sudo docker-compose -f /opt/stackdash/docker-appdata/traefik/docker-compose.yml up -d', shell=True) print ("*** Traefik is deployed! ***") -main() +if __name__ == "__main__": + main()