docker-mastodon/rootfs/usr/local/bin/run
2021-04-17 16:46:24 +02:00

36 lines
948 B
Bash

#!/bin/sh
echo "
---------------------------------------------
_____ _ _
| |___ ___| |_ ___ _| |___ ___
| | | | .'|_ -| _| . | . | . | |
|_|_|_|__,|___|_| |___|___|___|_|_|
A GNU Social-compatible microblogging server
https://github.com/tootsuite/mastodon
---------------------------------------------
UID/GID settings
---------------------------------------------
User ID : ${UID}
Group ID : ${GID}
---------------------------------------------
Logs location
---------------------------------------------
Sidekiq : /mastodon/log/sidekiq.log
Streaming : /mastodon/log/streaming.log
Web : /mastodon/log/web.log
---------------------------------------------
"
if [ "$RUN_DB_MIGRATIONS" == "true" ]; then
echo "Running database migrations task..."
bundle exec rake db:migrate
fi
echo "Executing process(es)..."
if [ '$@' == '' ]; then
exec /bin/s6-svscan /etc/s6.d
else
exec "$@"
fi