mirror of
https://github.com/linuxserver/docker-mastodon.git
synced 2026-01-09 07:21:44 +08:00
17 lines
518 B
Plaintext
Executable File
17 lines
518 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
|
|
# Disable the php-fpm service as the container doesn't use it
|
|
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-php-fpm
|
|
|
|
if [[ ${MASTODON_PROMETHEUS_EXPORTER_ENABLED,,} != "true" ]]; then
|
|
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-prom
|
|
fi
|
|
|
|
if [[ ${SIDEKIQ_ONLY,,} == "true" ]]; then
|
|
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-mastodon
|
|
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-nginx
|
|
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-streaming
|
|
fi
|
|
|
|
exec /docker-mods
|