Fix incorrect psql statements

This commit is contained in:
Salt 2020-07-30 08:41:11 -05:00
parent cb08c1c46b
commit cdb7e6df7a

View File

@ -53,8 +53,8 @@ if [ -d "var" ]; then
rm -rf "$PLEROMA_DIR/var"
fi
# Drop and recreate our database
sudo -Hu postgres psql -c 'DROP DATABASE <pleroma_db>;'
sudo -Hu postgres psql -c 'CREATE DATABASE <pleroma_db>;'
sudo -Hu postgres psql -c 'DROP DATABASE pleroma;'
sudo -Hu postgres psql -c 'CREATE DATABASE pleroma;'
sudo -Hu postgres pg_restore -d pleroma -v -1 db.pgdump
sudo -Hu postgres vacuumdb --all --analyze-in-stages
# FIRE IT UP