fix deletion of htpasswd/diroption files if no more htpasswds/diroptions are in the database
This commit is contained in:
@@ -1125,6 +1125,11 @@ class apache
|
||||
$this->wipeOutOldDiroptionConfigs();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// no more diroptions, but there might be some file-corpses which have to be removed
|
||||
$this->wipeOutOldDiroptionConfigs();
|
||||
}
|
||||
|
||||
// Write htpasswds
|
||||
|
||||
@@ -1160,6 +1165,11 @@ class apache
|
||||
$this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// no more htpasswds, but there might be some file-corpses which have to be removed
|
||||
$this->wipeOutOldHtpasswdConfigs();
|
||||
}
|
||||
|
||||
// Write virtualhosts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user