From b10f5f5abc6ee4a2d2f73a212ddd2fa6ae17cf2c Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 5 May 2018 21:23:29 +0200 Subject: [PATCH] Fix missing hostname in /etc/issue --- basic/usr/bin/spotter-appmgr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/usr/bin/spotter-appmgr b/basic/usr/bin/spotter-appmgr index 6a1be23..cfd08c9 100755 --- a/basic/usr/bin/spotter-appmgr +++ b/basic/usr/bin/spotter-appmgr @@ -215,7 +215,7 @@ class SpotterManager: host = subprocess.check_output(['/sbin/ip', 'route', 'get', '1']).split()[-1] # Show port number only when using the non-default HTTPS port if self.port != '443': - host = ':{}'.format(self.port) + host += ':{}'.format(self.port) # Rebuild the terminal banner with open(ISSUE_FILE, 'w') as f: f.write(ISSUE_TEMPLATE.format(host=host))