migrate: kid; matrix, firefish, search engine

This commit is contained in:
Strix 2023-10-22 14:47:10 +02:00
parent a12c81159a
commit 509afb52a8
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
25 changed files with 699 additions and 0 deletions

View file

@ -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