From 035ffd1f1e92dd9cf118f765ff838e626fa35a7e Mon Sep 17 00:00:00 2001 From: Justin Charette Date: Mon, 16 Nov 2015 20:41:40 -0500 Subject: [PATCH] reconfigure openssh server in noninteractive mode dpkg-reconfigure fails to run without a tty, pty, or some such, so tell it to just run. fixes #495 Signed-off-by: Justin Charette --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e3bdf320..094d54a7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -320,7 +320,7 @@ fi if [[ ! -e ${GITLAB_DATA_DIR}/ssh/ssh_host_rsa_key ]]; then # create ssh host keys and move them to the data store. - dpkg-reconfigure openssh-server + dpkg-reconfigure -f noninteractive openssh-server mkdir -p ${GITLAB_DATA_DIR}/ssh/ mv /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub ${GITLAB_DATA_DIR}/ssh/ fi