diff options
| author | dcc <dcc@logografos.com> | 2023-09-02 00:57:32 -0700 |
|---|---|---|
| committer | dcc <dcc@logografos.com> | 2023-09-02 00:57:32 -0700 |
| commit | cffa3f8aeeea6465212ec1dc2fab484183544ce1 (patch) | |
| tree | 4df04f95c9a656e0104cb774f0acbaade2cd48ae /docker.sh | |
| parent | 3a4773c3c2bd0bbef244eb519b07208da9108e49 (diff) | |
| download | anni-cffa3f8aeeea6465212ec1dc2fab484183544ce1.tar.gz anni-cffa3f8aeeea6465212ec1dc2fab484183544ce1.tar.bz2 anni-cffa3f8aeeea6465212ec1dc2fab484183544ce1.zip | |
added tagv2.5.4
Diffstat (limited to 'docker.sh')
| -rwxr-xr-x | docker.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docker.sh b/docker.sh new file mode 100755 index 0000000..4691f68 --- /dev/null +++ b/docker.sh @@ -0,0 +1,14 @@ +#!/bin/ash + +set -e + +echo "-- Waiting for database..." +while ! pg_isready -U ${DB_USER:-pleroma} -d postgres://${DB_HOST:-db}:${DB_PORT:-5432}/${DB_NAME:-pleroma} -t 1; do + sleep 1s +done + +echo "-- Running migrations..." +$HOME/bin/pleroma_ctl migrate + +echo "-- Starting!" +exec $HOME/bin/pleroma start |
