Skip to content

Commit

Permalink
Update import-email-to-piler service and action scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Apr 26, 2024
1 parent 0cefd8c commit 6dc3d93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imageroot/systemd/user/import-email-to-piler.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
Description= import emails to piler
BindsTo=piler.service
After=piler-app.service

ConditionPathExists=!%S/state/sync2pilerdone

[Service]
Type=forking
ExecCondition=/bin/sh -c '[ -n "$MAIL_SERVER" ]'

ExecStartPre=/usr/bin/bash -c "while [ -z "$MAIL_SERVER" ]; do echo '## Waiting the MAIL_SERVER is set' && sleep5 ; done"
ExecStart=/usr/local/bin/runagent import-emails

[Install]
Expand Down

0 comments on commit 6dc3d93

Please sign in to comment.