Skip to content

Commit

Permalink
Merge pull request #14 from NethServer/defaultServer
Browse files Browse the repository at this point in the history
Force to configure only one postgresql server backend
  • Loading branch information
stephdl authored May 22, 2024
2 parents 4b6729f + cc71e35 commit e071dba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
33 changes: 0 additions & 33 deletions imageroot/actions/configure-module/10configure_environment_vars

This file was deleted.

File renamed without changes.
4 changes: 3 additions & 1 deletion imageroot/systemd/user/pgadmin-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand All @@ -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
Expand Down

0 comments on commit e071dba

Please sign in to comment.