migrate: kid; matrix, firefish, search engine
This commit is contained in:
parent
a12c81159a
commit
509afb52a8
25 changed files with 699 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
POSTGRES_USER=${POSTGRES_USER:-}
|
||||
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-}
|
||||
POSTGRES_DB=${POSTGRES_DB:-firefish}
|
||||
SONIC_HOST=${SONIC_HOST:-}
|
||||
SONIC_PORT=${SONIC_PORT:-1491}
|
||||
SONIC_SECRET=${SONIC_SECRET:-}
|
||||
|
||||
if [ -f /firefish/.config/default.yml ]; then
|
||||
sed -i "s/\[POSTGRES_USER\]/$POSTGRES_USER/g" /firefish/.config/default.yml
|
||||
sed -i "s/\[POSTGRES_PASSWORD\]/$POSTGRES_PASSWORD/g" /firefish/.config/default.yml
|
||||
sed -i "s/\[POSTGRES_DB\]/$POSTGRES_DB/g" /firefish/.config/default.yml
|
||||
sed -i "s/\[SONIC_HOST\]/$SONIC_HOST/g" /firefish/.config/default.yml
|
||||
sed -i "s/\[SONIC_PORT\]/$SONIC_PORT/g" /firefish/.config/default.yml
|
||||
sed -i "s/\[SONIC_SECRET\]/$SONIC_SECRET/g" /firefish/.config/default.yml
|
||||
fi
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Starting firefish..."
|
||||
/sbin/tini -- pnpm run migrateandstart
|
||||
Loading…
Add table
Add a link
Reference in a new issue