Commit f2ec8695 authored by Till Brehm's avatar Till Brehm
Browse files

Set file mode explicitly for rspamd worker-controller.inc config file to not rely on system umask.

parent 065d5ff9
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1645,6 +1645,7 @@ class installer_base {
		$tpl->newTemplate('rspamd_worker-controller.inc.master');
		$tpl->setVar('rspamd_password', $mail_config['rspamd_password']);
		wf('/etc/rspamd/local.d/worker-controller.inc', $tpl->grab());
		chmod('/etc/rspamd/local.d/worker-controller.inc', 0644);
	}

	public function configure_spamassassin() {
+1 −0
Original line number Diff line number Diff line
@@ -242,6 +242,7 @@ class postfix_server_plugin {
			$tpl->newTemplate('rspamd_worker-controller.inc.master');
			$tpl->setVar('rspamd_password', $rspamd_password);
			$app->system->file_put_contents('/etc/rspamd/local.d/worker-controller.inc', $tpl->grab());
			chmod('/etc/rspamd/local.d/worker-controller.inc', 0644);
			$app->services->restartServiceDelayed('rspamd', 'reload');
		}