mirror of
https://git.proxmox.com/git/pmg-api
synced 2025-12-28 11:54:35 +00:00
followup for commit 0c4cf3f2cf
which assumed that we can order on templated base units, which we
cannot (at least under the systemd version of buster). So depend on
the actual instance of the main postfix template.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
32 lines
685 B
Desktop File
32 lines
685 B
Desktop File
[Unit]
|
|
Description=Sync Proxmox Configuration
|
|
ConditionPathExists=/usr/bin/pmgdb
|
|
ConditionPathExists=/usr/bin/pmgconfig
|
|
DefaultDependencies=no
|
|
Wants=remote-fs.target
|
|
After=remote-fs.target
|
|
Wants=postgresql.service
|
|
After=postgresql.service
|
|
Before=postfix.service
|
|
Before=postfix@-.service
|
|
Before=clamav-daemon.service
|
|
Before=clamav-freshclam.service
|
|
Before=pmgdaemon.service
|
|
Before=fetchmail.service
|
|
Before=pmgpolicy.service
|
|
Before=pmgproxy.service
|
|
Before=pmg-smtp-filter.service
|
|
Before=pmgmirror.service
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/pmgdb init
|
|
ExecStart=/usr/bin/pmgconfig init
|
|
ExecStart=/usr/bin/pmgconfig sync
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|