Skip to content

Commit

Permalink
Merge pull request #3 from geniusdynamics/dev
Browse files Browse the repository at this point in the history
fixed migration Script Restarting all other services
  • Loading branch information
compgeniuses authored Jul 12, 2024
2 parents 5951a65 + a11ed2b commit 4bafe81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ app_config = {
"NEW_RELIC_LICENSE_KEY": "",
"GOTENBERG_URL": "http//gotenberg-app:3000",
"GOTENBERG_DOCS_URL": "http//server:3000/public/",
"ADMIN_EMAIL":"[email protected]",
"ADMIN_PASSWORD":"BigCapital",
**database_config,
**email_config,
}
Expand Down
21 changes: 8 additions & 13 deletions imageroot/systemd/user/bigcapital-migrations.service
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
#
# Copyright (C) 2022 Nethesis S.r.l.
# bigcapital-migrations.service
# SPDX-License-Identifier: GPL-3.0-or-later
#

[Unit]
Description=Podman bigcapital-migrations.service
BindsTo=bigcapital.service
After=bigcapital.service redis-app.service mongo-app.service mariadb-app.service bigcapital-server.service bigcapital-webapp.service
Description=Podman bigcapital-migrations.service
Wants=bigcapital-webapp.service
After=bigcapital-webapp.service redis-app.service mongo-app.service mariadb-app.service bigcapital-server.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
EnvironmentFile=%S/state/environment
EnvironmentFile=-%S/state/smarthost.env
EnvironmentFile=-%S/state/app.env
WorkingDirectory=%S/state
Restart=always
TimeoutStopSec=70
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/bin/mkdir -p tmp
ExecStartPre=/bin/rm -f %t/bigcapital-migrations.pid %t/bigcapital-migrations.ctr-id
ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run --conmon-pidfile %t/bigcapital-migrations.pid \
ExecStart=/usr/bin/podman run --conmon-pidfile %t/bigcapital-migrations.pid \
--cidfile %t/bigcapital-migrations.ctr-id --cgroups=no-conmon \
--pod-id-file %t/bigcapital.pod-id --replace -d --name bigcapital-migrations \
--pod-id-file %t/bigcapital.pod-id --replace -d --name bigcapital-migrations \
--env-file=%S/state/database-config.env \
${BIGCAPITAL_MIGRATIONS_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/bigcapital-migrations.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP bigcapital-migrations
SyslogIdentifier=%u
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/bigcapital-migrations.ctr-id
PIDFile=%t/bigcapital-migrations.pid
Type=forking

[Install]
WantedBy=default.target
Binary file modified ui/src/assets/module_default_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4bafe81

Please sign in to comment.