~singpolyma/soapbox-fly

ref: 4f925366b362637f2fb8df897aef31425b8f269c soapbox-fly/start_pleroma.sh -rw-r--r-- 295 bytes
4f925366Stephen Paul Weber Tweak limits 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

export LANG=en_US.UTF-8
export USER=pleroma

echo "-- Waiting for database..."
while ! pg_isready; do
	sleep 1
done

echo "-- Running migrations..."
/opt/pleroma/bin/pleroma_ctl migrate

echo "-- Starting!"
touch /tmp/.pleroma-ever-started
exec /opt/pleroma/bin/pleroma start