Skip to content

Commit

Permalink
Fix #513: still need to write empty files; add test (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin authored Jul 30, 2024
1 parent b1dcd2e commit eadbc66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rsconf/component/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def _bash_append_and_dst(
file_contents is None
), "{}: do not pass both file_contents and file_src".format(host_path)
file_contents = file_src.read_binary()
if file_contents:
if file_contents is not None:
md5 = _md5(self._write_binary(dst, file_contents))
self._bash_append(host_path, md5=md5)
return dst
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ postfix_rsconf_component() {
rsconf_yum_install postfix procmail cyrus-sasl cyrus-sasl-plain
rsconf_service_prepare 'postfix' '/etc/systemd/system/postfix.service' '/etc/systemd/system/postfix.service.d' '/etc/postfix'
rsconf_install_access '440' 'root' 'mail'
rsconf_install_file '/etc/postfix/sender_access'
rsconf_install_file '/etc/postfix/sender_access' 'd41d8cd98f00b204e9800998ecf8427e'
rsconf_install_access '400' 'root' 'root'
rsconf_install_file '/etc/sasl2/smtpd-sasldb.conf' '7d9b2345cc4447364639bbd15af40f2e'
rsconf_install_access '440' 'root' 'mail'
Expand Down

0 comments on commit eadbc66

Please sign in to comment.