Skip to content
Snippets Groups Projects
Commit e8f617ce authored by Michael Loipführer's avatar Michael Loipführer
Browse files

minor fixes

parent f8f1c9cb
No related branches found
No related tags found
No related merge requests found
#!/bin/env bash #!/bin/bash
mkdir -p /var/www/lustmolch mkdir -p /var/www/lustmolch
cp -rf www/* /var/www/lustmolch/ cp -rf www/* /var/www/lustmolch/
...@@ -49,7 +49,7 @@ def next_ssh_port(config_file, name): ...@@ -49,7 +49,7 @@ def next_ssh_port(config_file, name):
if name in cfg: if name in cfg:
return cfg.get(name).get('ssh_port') return cfg.get(name).get('ssh_port')
port = SSH_START_PORT port = SSH_START_PORT
for container in cfg.items(): for name, container in cfg.items():
if container.get('ssh_port') >= port: if container.get('ssh_port') >= port:
port = container.get('ssh_port') + SSH_PORT_INCREMENT port = container.get('ssh_port') + SSH_PORT_INCREMENT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment