From fa4fc26743013f556bf0e5380b20f1437b0e0ccf Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 4 Feb 2015 16:04:23 +0530 Subject: [PATCH] init: do not silence command errors Closes #252 --- assets/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/init b/assets/init index deb5f61d..d09e1c90 100755 --- a/assets/init +++ b/assets/init @@ -363,7 +363,7 @@ if [ -f "${SSL_CERTIFICATE_PATH}" -o -f "${CA_CERTIFICATES_PATH}" ]; then echo "Updating CA certificates..." [ -f "${SSL_CERTIFICATE_PATH}" ] && cp "${SSL_CERTIFICATE_PATH}" /usr/local/share/ca-certificates/gitlab.crt [ -f "${CA_CERTIFICATES_PATH}" ] && cp "${CA_CERTIFICATES_PATH}" /usr/local/share/ca-certificates/ca.crt - update-ca-certificates --fresh >/dev/null 2>&1 + update-ca-certificates --fresh >/dev/null fi # configure git for the 'git' user @@ -705,7 +705,7 @@ appStart () { esac timeout=60 printf "Waiting for database server to accept connections" - while ! ${prog} >/dev/null 2>&1 + while ! ${prog} >/dev/null do timeout=$(expr $timeout - 1) if [ $timeout -eq 0 ]; then