Skip to content

Commit

Permalink
Fix #490 chown xargs --no-run-if-empty (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler authored Apr 30, 2024
1 parent 25f3cc6 commit aaead2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rsconf/package_data/spamd/main.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

spamd_main() {
find {{ spamd.sa_update_keys_d }} ! -user root \
| xargs chown root:root
| xargs --no-run-if-empty chown root:root
# replace logrotate, which limits rotations and restarts spamd
# sought.conf is removed, but Red Hat won't fix:
# https://bugzilla.redhat.com/show_bug.cgi?id=1630362
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rsconf_install_file '/etc/systemd/system/spamd.service' 'f42ec8d8a0eaa370b3853dc

spamd_main() {
find /etc/mail/spamassassin/sa-update-keys ! -user root \
| xargs chown root:root
| xargs --no-run-if-empty chown root:root
# replace logrotate, which limits rotations and restarts spamd
# sought.conf is removed, but Red Hat won't fix:
# https://bugzilla.redhat.com/show_bug.cgi?id=1630362
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rsconf_install_file '/etc/systemd/system/spamd.service' 'f42ec8d8a0eaa370b3853dc

spamd_main() {
find /etc/mail/spamassassin/sa-update-keys ! -user root \
| xargs chown root:root
| xargs --no-run-if-empty chown root:root
# replace logrotate, which limits rotations and restarts spamd
# sought.conf is removed, but Red Hat won't fix:
# https://bugzilla.redhat.com/show_bug.cgi?id=1630362
Expand Down

0 comments on commit aaead2f

Please sign in to comment.