1
0
mirror of /repos/baseimage-docker.git synced 2025-12-30 08:01:31 +01:00

Fixed bug introduced in PR-182

If you disable the installation of all services, you could have a != 0
output, and break the `docker build` process.
This commit is contained in:
Enderson Maia 2015-07-15 17:31:01 -03:00
parent bbc639b372
commit e053f04cf6

View File

@ -20,10 +20,10 @@ ln -s /etc/container_environment.sh /etc/profile.d/
$minimal_apt_get_install runit
## Install a syslog daemon and logrotate.
[ "$DISABLE_SYSLOG" -eq 0 ] && /bd_build/services/syslog-ng/syslog-ng.sh
[ "$DISABLE_SYSLOG" -eq 0 ] && /bd_build/services/syslog-ng/syslog-ng.sh || true
## Install the SSH server.
[ "$DISABLE_SSH" -eq 0 ] && /bd_build/services/sshd/sshd.sh
[ "$DISABLE_SSH" -eq 0 ] && /bd_build/services/sshd/sshd.sh || true
## Install cron daemon.
[ "$DISABLE_CRON" -eq 0 ] && /bd_build/services/cron/cron.sh
[ "$DISABLE_CRON" -eq 0 ] && /bd_build/services/cron/cron.sh || true