docker-mastodon/rootfs/usr/local/bin/run

37 lines
948 B
Text
Raw Permalink Normal View History

2018-06-12 14:54:14 +00:00
#!/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..."
2021-04-17 14:46:24 +00:00
bundle exec rake db:migrate
2018-06-12 14:54:14 +00:00
fi
echo "Executing process(es)..."
if [ '$@' == '' ]; then
2021-04-17 14:46:24 +00:00
exec /bin/s6-svscan /etc/s6.d
2018-06-12 14:54:14 +00:00
else
2021-04-17 14:46:24 +00:00
exec "$@"
2018-06-12 14:54:14 +00:00
fi