Update 'pleroma/setup.sh'
This commit is contained in:
parent
463563ff73
commit
6e0c2ace5d
@ -20,9 +20,9 @@ mkdir /var/run/nginx
|
|||||||
#Database Setup
|
#Database Setup
|
||||||
sleep 10
|
sleep 10
|
||||||
export PGPASSWORD="sql"
|
export PGPASSWORD="sql"
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS citext;"| PGPASSWORD=sql psql -h postgresql -U pleroma
|
echo "CREATE EXTENSION IF NOT EXISTS citext;"| PGPASSWORD=sql psql -h postgresql -U root pleroma
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS pg_trgm;" | PGPASSWORD=sql psql -h postgresql -U pleroma
|
echo "CREATE EXTENSION IF NOT EXISTS pg_trgm;" | PGPASSWORD=sql psql -h postgresql -U root pleroma
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" | PGPASSWORD=sql psql -h postgresql -U pleroma
|
echo "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" | PGPASSWORD=sql psql -h postgresql -U root pleroma
|
||||||
su pleroma -s $SHELL -lc "/opt/pleroma/bin/pleroma_ctl migrate"
|
su pleroma -s $SHELL -lc "/opt/pleroma/bin/pleroma_ctl migrate"
|
||||||
|
|
||||||
#su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql --force"
|
#su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql --force"
|
||||||
|
Loading…
Reference in New Issue
Block a user