File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -502,13 +502,21 @@ public function configure_amavis() {
502502 $ content = str_replace ('{mysql_server_port} ' , $ conf ["mysql " ]["port " ], $ content );
503503 $ content = str_replace ('{mysql_server_ip} ' , $ conf ['mysql ' ]['ip ' ], $ content );
504504 $ content = str_replace ('{hostname} ' , $ conf ['hostname ' ], $ content );
505+ $ content = str_replace ('{amavis_config_dir} ' , $ conf ['amavis ' ]['config_dir ' ], $ content );
505506 wf ($ conf ["amavis " ]["config_dir " ].'/amavisd.conf ' , $ content );
506507 chmod ($ conf ['amavis ' ]['config_dir ' ].'/amavisd.conf ' , 0640 );
507508
509+ if (!is_file ($ conf ['amavis ' ]['config_dir ' ].'/60-dkim ' )) {
510+ touch ($ conf ['amavis ' ]['config_dir ' ].'/60-dkim ' );
511+ chmod ($ conf ['amavis ' ]['config_dir ' ].'/60-dkim ' , 0640 );
512+ }
513+
508514 // for CentOS 7.2 only
509515 if ($ dist ['confid ' ] == 'centos72 ' ) {
510516 chmod ($ conf ['amavis ' ]['config_dir ' ].'/amavisd.conf ' , 0750 );
511517 chgrp ($ conf ['amavis ' ]['config_dir ' ].'/amavisd.conf ' , 'amavis ' );
518+ chmod ($ conf ['amavis ' ]['config_dir ' ].'/60-dkim ' , 0750 );
519+ chgrp ($ conf ['amavis ' ]['config_dir ' ].'/60-dkim ' , 'amavis ' );
512520 }
513521
514522
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ function get_distname() {
307307 $ distid = 'centos53 ' ;
308308 $ distbaseid = 'fedora ' ;
309309 swriteln ("Operating System: CentOS 5 or compatible \n" );
310- } elseif (stristr ($ content , 'CentOS Linux release 6 ' )) {
310+ } elseif (stristr ($ content , 'CentOS Linux release 6 ' ) || stristr ( $ content , ' CentOS release 6 ' ) ) {
311311 $ distname = 'CentOS ' ;
312312 $ distver = 'Unknown ' ;
313313 $ distid = 'centos53 ' ;
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ function get_distname() {
278278 $ distver = 'Unknown ' ;
279279 $ distid = 'centos53 ' ;
280280 $ distbaseid = 'fedora ' ;
281- } elseif (stristr ($ content , 'CentOS Linux release 6 ' )) {
281+ } elseif (stristr ($ content , 'CentOS Linux release 6 ' ) || stristr ( $ content , ' CentOS release 6 ' ) ) {
282282 $ distname = 'CentOS ' ;
283283 $ distver = 'Unknown ' ;
284284 $ distid = 'centos53 ' ;
You can’t perform that action at this time.
0 commit comments