Skip to content

Commit b801952

Browse files
committed
ensure created rspamd directories have correct permission
1 parent 32048fa commit b801952

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,14 +1800,17 @@ public function configure_rspamd() {
18001800

18011801
if(!is_dir('/etc/rspamd/local.d/')){
18021802
mkdir('/etc/rspamd/local.d/', 0755, true);
1803+
chmod('/etc/rspamd/local.d/', 0755);
18031804
}
18041805

18051806
if(!is_dir('/etc/rspamd/local.d/maps.d/')){
18061807
mkdir('/etc/rspamd/local.d/maps.d/', 0755, true);
1808+
chmod('/etc/rspamd/local.d/maps.d/', 0755);
18071809
}
18081810

18091811
if(!is_dir('/etc/rspamd/override.d/')){
18101812
mkdir('/etc/rspamd/override.d/', 0755, true);
1813+
chmod('/etc/rspamd/override.d/', 0755);
18111814
}
18121815

18131816
if ( substr($mail_config['dkim_path'], strlen($mail_config['dkim_path'])-1) == '/' ) {

0 commit comments

Comments
 (0)