summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manage.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/manage.py b/manage.py
index c293106..351ede6 100644
--- a/manage.py
+++ b/manage.py
@@ -149,14 +149,16 @@ def uninstall_flask(settings):
def install_systemd_file(settings):
"""Install the Systemd Unit for launching the dynamic Web Server"""
- subprocess.call("sudo install -Dm 644 systemd/build/{0}.service /etc/systemd/system/{0}.service".format(settings["project_name"]), shell=True)
- subprocess.call("sudo systemctl daemon-reload", shell=True)
+ if settings["framework"] != None:
+ subprocess.call("sudo install -Dm 644 systemd/build/{0}.service /etc/systemd/system/{0}.service".format(settings["project_name"]), shell=True)
+ subprocess.call("sudo systemctl daemon-reload", shell=True)
def uninstall_systemd_file(settings):
"""Uninstall the Systemd Unit for launching the dynamic Web Server"""
- subprocess.call("sudo rm /etc/systemd/system/{0}.service".format(settings["project_name"]), shell=True)
+ if settings["framework"] != None:
+ subprocess.call("sudo rm /etc/systemd/system/{0}.service".format(settings["project_name"]), shell=True)
def main():