2015-02-17 21:37:15 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ! -f /etc/ssh/sshd_config ]; then
|
|
|
|
# Regenerate ssh key per container
|
|
|
|
dpkg-reconfigure openssh-server
|
|
|
|
fi
|
|
|
|
|
|
|
|
chown nexus /nexus
|
|
|
|
|
2015-02-27 15:36:29 -08:00
|
|
|
# Cleanly kill supervisor when container is stopped
|
|
|
|
trap 'kill $(jobs -p)' EXIT
|
|
|
|
|
2015-02-17 21:37:15 -08:00
|
|
|
# start services
|
|
|
|
supervisord
|