Skip to content

Commit

Permalink
fix(systemd): fix env vars with special chars
Browse files Browse the repository at this point in the history
Correct handling of environment variables containing special characters
when loaded via systemd. Replaced direct podman execution with runagent
wrapper to ensure proper parsing and execution. Removed unused
EnvironmentFile directive to avoid confusion and potential conflicts.
  • Loading branch information
Amygos committed Jan 22, 2025
1 parent 9059704 commit d53758b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imageroot/systemd/user/freepbx.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ After=mariadb.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
EnvironmentFile=%S/state/environment
WorkingDirectory=%S/state
Restart=always
ExecStartPre=/bin/rm -f %t/freepbx.pid %t/freepbx.ctr-id
ExecStartPre=-runagent install-certificate freepbx
ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run \
ExecStart=runagent /usr/bin/podman run \
--detach \
--conmon-pidfile=%t/freepbx.pid \
--cidfile=%t/freepbx.ctr-id \
Expand Down

0 comments on commit d53758b

Please sign in to comment.