mastodon-docker/rootfs/etc/service/streaming/run

12 lines
199 B
Bash

#!/bin/bash
sleep 2
while [[ -e /state/.starting ]]; do
sleep 1
done
echo "streaming starting..."
cd /mastodon/app
exec envdir /state/envdir chpst -u mastodon:mastodon bash -c "npm run start"