mastodon: redirect logs to files

This commit is contained in:
Wonderfall
2017-06-13 22:35:21 +02:00
parent 02a80f96bc
commit f4be378e23
4 changed files with 12 additions and 4 deletions

View File

@ -18,9 +18,17 @@ A GNU Social-compatible microblogging server
https://github.com/tootsuite/mastodon
17j2g7vpgHhLuXhN4bueZFCvdxxieyRVWd
---------------------------------------------
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
---------------------------------------------
"
echo "Creating mastodon user..."
@ -40,7 +48,7 @@ if [ "$RUN_DB_MIGRATIONS" == "true" ]; then
su-exec mastodon:mastodon rake db:migrate
fi
echo "Executing process..."
echo "Executing process(es)..."
if [ '$@' == '' ]; then
exec su-exec mastodon:mastodon /bin/s6-svscan /etc/s6.d
else