docker-mastodon/root/init-hook
2023-05-30 14:41:03 +01:00

13 lines
391 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 [[ ${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