Commit d6acdb08 authored by d.weber's avatar d.weber

Use bash; don't terminate on error

The entrypoint script didn't work well when used with docker-compose. Namely, setting the password failed.
Switching to /bin/bash fixed it for reasons unknown.

The entrypoint script used to quit on every error, even errors caused by manual interaction with
dsmc in the container. That made manual intervention and operations like restore difficult. Now it
keeps running.
parent a2c09558
Pipeline #23512 failed with stage
in 22 seconds
#!/bin/sh
#!/bin/bash
touch /var/log/dsmsched.log || exit 14
{ tail -f /var/log/dsmsched.log || exit 11; } &
......@@ -41,19 +41,9 @@ do
sleep 2
done
result=9
PID=$PID_preliminary
while kill -0 2> /dev/null $PID
do
error_log_size="`wc -c /var/log/dsmsched_error.log | cut -d ' ' -f 1`" || exit 12
if [ $error_log_size != "0" ]
then
echo "********************************************************************" >&2
echo "********************************************************************" >&2
echo " content of /var/log/dsmsched_error.log " >&2
echo "********************************************************************" >&2
cat /var/log/dsmsched_error.log >&2
exit 13
fi
sleep 5
done
tail -f /var/log/dsmsched_error.log >&2
exit $result
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment