diff --git a/create_db.sh.template b/create_db.sh.template index 6c983ff..4741037 100644 --- a/create_db.sh.template +++ b/create_db.sh.template @@ -10,5 +10,6 @@ su - postgres -c "PGPASSWORD=\"DESTINATION_POSTGRES_PASSWORD\" psql -U postgres CONNECTION LIMIT = -1;\"" set "PGPASSWORD=DESTINATION_POSTGRES_PASSWORD" -su - postgres -c "export \"PGPASSWORD=DESTINATION_POSTGRES_PASSWORD\"" -su - postgres -c "pg_restore -j 2 -d DESTINATION_DB_NAME /var/backups/DB_BACKUP" \ No newline at end of file +#su - postgres -c "export \"PGPASSWORD=DESTINATION_POSTGRES_PASSWORD\"" +#su - postgres -c "pg_restore -j 2 -d DESTINATION_DB_NAME /var/backups/DB_BACKUP" +su - postgres -c "export PGPASSWORD='DESTINATION_POSTGRES_PASSWORD' && echo \$PGPASSWORD && pg_restore -j 2 -d DESTINATION_DB_NAME /var/backups/DB_BACKUP"