Make spotter-appmgr restart service after update-url.sh

This commit is contained in:
Disassembler 2018-03-26 21:53:49 +02:00
parent dd2a936cc7
commit 41ae6eedb3
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -119,6 +119,7 @@ class SpotterManager:
if os.path.exists(script_path) and os.access(script_path, os.X_OK):
host = '{}.{}'.format(app, self.domain)
subprocess.call([script_path, host, self.port])
subprocess.call(['service', app, 'restart'])
def update_proxy(self, app):
self.add_app_to_nginx(app)