generated from stephdl/ns8-kickstart-mariadb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from NethServer/defaultServer
Force to configure only one postgresql server backend
- Loading branch information
Showing
3 changed files
with
3 additions
and
34 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
imageroot/actions/configure-module/10configure_environment_vars
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/pgadmin-app.pid \ | |
--cidfile %t/pgadmin-app.ctr-id --cgroups=no-conmon \ | ||
--pod-id-file %t/postgresql.pod-id --replace -d --name pgadmin-app \ | ||
--volume pgadmin-data:/var/lib/pgadmin:Z \ | ||
--volume ./servers.json:/pgadmin4/servers.json:Z \ | ||
--volume ./config_server.json:/pgadmin4/config_server.json:Z \ | ||
--volume ./pgpassfile:/pgadmin4/pgpassfile:Z \ | ||
--env '[email protected]' \ | ||
--env 'PGADMIN_DEFAULT_PASSWORD=Nethesis,1234' \ | ||
|
@@ -33,6 +33,8 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/pgadmin-app.pid \ | |
--env 'PGADMIN_CONFIG_CONFIG_DATABASE_URI="postgresql://postgres:Nethesis,[email protected]:5432/postgres"' \ | ||
--env-file=%S/state/smarthost.env \ | ||
${PGADMIN4_IMAGE} | ||
ExecStartPost=/usr/bin/bash -c "while ! podman exec pgadmin-app /venv/bin/python3 setup.py get-users ; do sleep 5 ; done" | ||
ExecStartPost=/usr/bin/podman exec pgadmin-app /venv/bin/python3 setup.py load-servers config_server.json --replace --user [email protected] | ||
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/pgadmin-app.ctr-id -t 10 | ||
ExecReload=/usr/bin/podman kill -s HUP pgadmin-app | ||
SyslogIdentifier=%u | ||
|