2020-01-21 05:24:45 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-03-09 00:00:03 +01:00
|
|
|
sv -w 30 check php-fpm || exit 1
|
|
|
|
|
2022-01-23 13:41:11 +01:00
|
|
|
bool() {
|
|
|
|
case "$1" in
|
|
|
|
Y* | y* | true | TRUE | 1) return 0 ;;
|
|
|
|
esac
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
ENABLE_REDIS=${ENABLE_REDIS:-false}
|
|
|
|
if bool "$ENABLE_REDIS"; then
|
|
|
|
ENABLE_REDIS=true
|
|
|
|
else
|
|
|
|
ENABLE_REDIS=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
export ENABLE_REDIS
|
|
|
|
|
|
|
|
# Copy the nginx template to its destination.
|
2022-01-24 14:11:34 +01:00
|
|
|
dockerize -template "/etc/nginx/nginx.conf.tmpl:/etc/nginx/nginx.conf" \
|
|
|
|
-template "/etc/nginx/azuracast.conf.tmpl:/etc/nginx/sites-available/default"
|
2022-01-23 13:41:11 +01:00
|
|
|
|
2022-01-18 09:49:08 +01:00
|
|
|
exec nginx -g "daemon off;"
|