Skip to content

Commit f4bba31

Browse files
committed
Fix for running install when not in same dir as where layersbox.py is
find add_nginx_conf.sh from same dir where layersbox.py is
1 parent 9a8df91 commit f4bba31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

layersbox

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ programs = ["docker", "docker-compose"]
1919
base = "base.yml"
2020
conf = "box.yml"
2121
minimal = 'minimal.yml'
22-
# src = os.path.dirname(os.path.realpath(__file__))
22+
layersbox_src = os.path.dirname(os.path.realpath(__file__))
2323

2424
minimal_data = '''adapterdata:
2525
container_name: adapter-data
@@ -543,7 +543,8 @@ def update_adapter(config, service_directory, service_name):
543543

544544
# copy nginx.adapted.conf into container
545545
#TODO: run the whole script directly from python
546-
subprocess.check_output(["./add_nginx_conf.sh", service_name])
546+
subprocess.check_output([join(layersbox_src,"add_nginx_conf.sh"),
547+
service_name])
547548

548549
# send the adapter the HUP kill signal
549550
subprocess.check_output(["docker", "kill", '--signal="HUP"', "adapter"])

0 commit comments

Comments
 (0)