diff options
Diffstat (limited to 'manage.py')
-rw-r--r-- | manage.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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(): |