Skip to content

Commit

Permalink
fix: adding update path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Nov 5, 2024
1 parent a157083 commit 53eb48f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions imageroot/actions/configure-module/20configure
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ with open('config.env', 'w') as env:
env.write(f'OVPN_NETMASK={request["ovpn_netmask"]}\n')
env.write(f'OVPN_CN={request["ovpn_cn"]}\n')
env.write(f'FQDN={request["host"]}\n')
env.write(f'ISSUER_2FA={request["host"]}\n')
env.write(f'PROMETHEUS_PATH={config["prometheus_path"]}\n')
env.write(f'WEBSSH_PATH={config["webssh_path"]}/\n')
env.write(f'GRAFANA_PATH=/grafana\n')
Expand Down
2 changes: 2 additions & 0 deletions imageroot/systemd/user/api.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ExecStart=/usr/bin/podman run \
--replace -d --name api \
--volume api-credentials:/nethsecurity-api/credentials/:z \
--volume api-data:/nethsecurity-api/data/:z \
--volume api-secrets:/nethsecurity-api/secrets/:z \
--volumes-from=vpn \
--network=host \
--env-file=%S/state/network.env \
Expand All @@ -27,6 +28,7 @@ ExecStart=/usr/bin/podman run \
--env-file=%S/state/subscription.env \
--env-file=%S/state/db.env \
--env 'GIN_MODE=release' \
--env SECRETS_DIR=/nethsecurity-api/secrets \
${NETHSECURITY_API_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/api.ctr-id -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/api.ctr-id
Expand Down

0 comments on commit 53eb48f

Please sign in to comment.