init: do not silence command errors

Closes #252
This commit is contained in:
Sameer Naik 2015-02-04 16:04:23 +05:30
parent 7cab85dea5
commit fa4fc26743

View File

@ -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