mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
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 <charetjc@gmail.com>
This commit is contained in:
parent
369126bdd6
commit
035ffd1f1e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user