mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-03 01:23:22 +02:00
Another PgSQL update
This commit is contained in:
parent
0cec56475a
commit
c256cd9fc9
7 changed files with 173 additions and 171 deletions
|
@ -125,9 +125,9 @@ Now you need to update PostgreSQL Admin User Password:
|
|||
sudo -u postgres psql
|
||||
postgres=#
|
||||
postgres=# ALTER USER postgres PASSWORD 'demoPassword';
|
||||
postgres=# CREATE SCHEMA registry;
|
||||
postgres=# CREATE SCHEMA registryTransaction;
|
||||
postgres=# CREATE SCHEMA registryAudit;
|
||||
postgres=# CREATE DATABASE registry;
|
||||
postgres=# CREATE DATABASE registryTransaction;
|
||||
postgres=# CREATE DATABASE registryAudit;
|
||||
postgres=# \q
|
||||
```
|
||||
|
||||
|
@ -266,7 +266,7 @@ systemctl enable caddy
|
|||
systemctl restart caddy
|
||||
```
|
||||
|
||||
**And now is the right time to import the provided database file for your database type using Adminer.**
|
||||
**And now is the right time to import the provided database file(s) for your database type using Adminer.**
|
||||
|
||||
## 7. Control Panel Setup:
|
||||
|
||||
|
|
|
@ -166,12 +166,13 @@ EOF
|
|||
psql --version
|
||||
echo "Configuring PostgreSQL..."
|
||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD '$DB_PASSWORD';"
|
||||
sudo -u postgres psql -c "CREATE SCHEMA registry;"
|
||||
sudo -u postgres psql -c "CREATE SCHEMA registryTransaction;"
|
||||
sudo -u postgres psql -c "CREATE SCHEMA registryAudit;"
|
||||
sudo -u postgres psql -c "CREATE DATABASE registry;"
|
||||
sudo -u postgres psql -c "CREATE DATABASE registryTransaction;"
|
||||
sudo -u postgres psql -c "CREATE DATABASE registryAudit;"
|
||||
|
||||
echo "Importing SQL file into PostgreSQL..."
|
||||
psql -U postgres -d postgres -f /opt/registry/database/registry.postgres.sql
|
||||
echo "Importing SQL files into PostgreSQL..."
|
||||
sudo -u postgres psql -U postgres -d registry -f /opt/registry/database/registry.postgres.sql
|
||||
sudo -u postgres psql -U postgres -d registrytransaction -f /opt/registry/database/registryTransaction.postgres.sql
|
||||
echo "SQL import completed."
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue