mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-24 15:21:29 +00:00
21 lines
419 B
Bash
Executable File
21 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run hooks
|
|
for file in /hooks/*; do
|
|
if [ -x "${file}" ]; then
|
|
echo "Running hook ${file}"
|
|
"${file}"
|
|
fi
|
|
done
|
|
|
|
python3 -u /bootstrap/main.py
|
|
BOOTSTRAP_EXIT_CODE=$?
|
|
|
|
if [ $BOOTSTRAP_EXIT_CODE -ne 0 ]; then
|
|
echo "Bootstrap failed with exit code $BOOTSTRAP_EXIT_CODE. Not starting SOGo."
|
|
exit $BOOTSTRAP_EXIT_CODE
|
|
fi
|
|
|
|
echo "Bootstrap succeeded. Starting SOGo..."
|
|
exec gosu sogo /usr/sbin/sogod
|