From 64df8f2d71bfcf96e5616e7f7c4b50fb037b84bf Mon Sep 17 00:00:00 2001 From: bytestream Date: Wed, 3 Jun 2026 11:24:11 +0100 Subject: [PATCH] don't swallow failures --- image/system_services.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/image/system_services.sh b/image/system_services.sh index a3666a2..4d664f4 100755 --- a/image/system_services.sh +++ b/image/system_services.sh @@ -22,10 +22,16 @@ 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 || true +if [ "$DISABLE_SYSLOG" -eq 0 ]; then + /bd_build/services/syslog-ng/syslog-ng.sh +fi ## Install the SSH server. -[ "$DISABLE_SSH" -eq 0 ] && /bd_build/services/sshd/sshd.sh || true +if [ "$DISABLE_SSH" -eq 0 ]; then + /bd_build/services/sshd/sshd.sh +fi ## Install cron daemon. -[ "$DISABLE_CRON" -eq 0 ] && /bd_build/services/cron/cron.sh || true +if [ "$DISABLE_CRON" -eq 0 ]; then + /bd_build/services/cron/cron.sh +fi