~singpolyma/soapbox-fly

soapbox-fly/start_pleroma.sh -rw-r--r-- 295 bytes
8d50c975root21 Fixed a typo in Dockerfile 17 days 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