Stop all containers if install.sh fails
This commit is contained in:
parent
b3f2a4be70
commit
d70fe9756a
@ -98,7 +98,13 @@ class App:
|
||||
for container,container_defintion in definition['containers'].items():
|
||||
self.create_container(container, container_defintion)
|
||||
# Run install script and register the app
|
||||
try:
|
||||
self.run_script('install')
|
||||
except:
|
||||
# Stop all containers if install.sh fails
|
||||
for container in self.containers:
|
||||
container.stop()
|
||||
raise
|
||||
repo_local.register_app(self.name, self.get_definition())
|
||||
|
||||
def update(self, observer=None):
|
||||
|
Loading…
Reference in New Issue
Block a user