mastodon: silent startup

single-dockerfile
Ubuntu 2 years ago
parent e20e00a3c2
commit 1d1b19dced
  1. 6
      mastodon/entrypoint.sh

@ -1,19 +1,13 @@
#!/bin/bash -x #!/bin/bash -x
id
export
pwd
rm -f /mastodon/tmp/pids/server.pid rm -f /mastodon/tmp/pids/server.pid
export MASTODON_DIR=/mastodon/public/system export MASTODON_DIR=/mastodon/public/system
export VAPID_KEY="$MASTODON_DIR/vapid_key" export VAPID_KEY="$MASTODON_DIR/vapid_key"
export DB_SETUP="$MASTODON_DIR/db_done" export DB_SETUP="$MASTODON_DIR/db_done"
which rails
chown -R mastodon:mastodon "$MASTODON_DIR" chown -R mastodon:mastodon "$MASTODON_DIR"
#exec su mastodon /bin/bash - <<EOF
exec su mastodon <<EOF exec su mastodon <<EOF
export PATH="$PATH:/opt/ruby/bin:/opt/node/bin:/opt/mastodon/bin" export PATH="$PATH:/opt/ruby/bin:/opt/node/bin:/opt/mastodon/bin"

Loading…
Cancel
Save