@@ -208,7 +208,7 @@ function soa_dnssec_update(&$data, $new=false) {
208208
209209 //* Check for available entropy
210210 if (file_get_contents ('/proc/sys/kernel/random/entropy_avail ' ) < 200 ) {
211- $ app ->log ('DNSSEC ERROR: We are low on entropy. This could cause server script to fail. Please consider installing package haveged. ' , LOGLEVEL_ERR );
211+ $ app ->log ('DNSSEC ERROR: We are low on entropy. This could cause server script to fail. Please consider installing package haveged. ' , LOGLEVEL_ERROR );
212212 echo "DNSSEC ERROR: We are low on entropy. This could cause server script to fail. Please consider installing package haveged. \n" ;
213213 return false ;
214214 }
@@ -219,7 +219,7 @@ function soa_dnssec_update(&$data, $new=false) {
219219 $ app ->system ->exec_safe ('cd ?; named-checkzone ? ? | egrep -ho \'[0-9]{10} \'' , $ dns_config ['bind_zonefiles_dir ' ], $ domain , $ dns_config ['bind_zonefiles_dir ' ].'/ ' .$ filespre .$ domain );
220220 $ retState = $ app ->system ->last_exec_retcode ();
221221 if ($ retState != 0 ) {
222- $ app ->log ('DNSSEC Error: Error in Zonefile for ' .$ domain , LOGLEVEL_ERR );
222+ $ app ->log ('DNSSEC Error: Error in Zonefile for ' .$ domain , LOGLEVEL_ERROR );
223223 return false ;
224224 }
225225
@@ -417,12 +417,6 @@ function soa_delete($event_name, $data) {
417417 if (is_file ($ zone_file_name .'.err ' )) unlink ($ zone_file_name .'.err ' );
418418 $ app ->log ("Deleting BIND domain file: " .$ zone_file_name , LOGLEVEL_DEBUG );
419419
420- //* DNSSEC-Implementation
421- if ($ data ['old ' ]['dnssec_initialized ' ] == 'Y ' && file_exists ('/usr/local/ispconfig/server/scripts/dnssec-delete.sh ' )) {
422- //delete keys
423- $ app ->system ->exec_safe ('/usr/local/ispconfig/server/scripts/dnssec-delete.sh ? ' , $ data ['old ' ]['origin ' ]);
424- }
425-
426420 //* Reload bind nameserver
427421 $ app ->services ->restartServiceDelayed ('bind ' , 'reload ' );
428422
0 commit comments