diff --git a/deploy.sh b/deploy.sh index 3610b7800d8efe0d09a841c3396a23638b02357a..b0d8f33d345b6a5bfe2cc25231ab541ee52e5c10 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash mkdir -p /var/www/lustmolch cp -rf www/* /var/www/lustmolch/ diff --git a/lustmolch.py b/lustmolch.py index 679b94304ec18e0e52ecef0318609e3f516ce7ba..78aa0c32e82fcbf27484e962d67879cf028dda03 100755 --- a/lustmolch.py +++ b/lustmolch.py @@ -49,7 +49,7 @@ def next_ssh_port(config_file, name): if name in cfg: return cfg.get(name).get('ssh_port') port = SSH_START_PORT - for container in cfg.items(): + for name, container in cfg.items(): if container.get('ssh_port') >= port: port = container.get('ssh_port') + SSH_PORT_INCREMENT