From e8f617ce489828e3a658e73a51e3ab6d6f8f5ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Loipf=C3=BChrer?= <michael.loipfuehrer@stusta.de> Date: Thu, 6 Jun 2019 16:20:10 +0000 Subject: [PATCH] minor fixes --- deploy.sh | 2 +- lustmolch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 3610b78..b0d8f33 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 679b943..78aa0c3 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 -- GitLab