Commit aee2f823 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixes for ubuntu

parent 0ddf927d
......@@ -4,7 +4,7 @@
*
* @author croydon
*/
class ISPConfigUbuntuOS extends ISPConfigDebianOS {
class ISPConfigUbuntu2004OS extends ISPConfigUbuntuOS {
protected function configureApt() {
// enable contrib and non-free
ISPConfigLog::info('Configuring apt repositories.', true);
......@@ -35,18 +35,6 @@ deb http://security.ubuntu.com/ubuntu focal-security multiverse
}
}
protected function afterPackageInstall($section = '') {
if($section === 'mail') {
$cmd = 'freshclam';
$result = $this->exec($cmd, array(62));
if($result === false) {
throw new ISPConfigOSException('Command ' . $cmd . ' failed.');
}
$this->startService('clamav-daemon');
}
}
protected function addSuryRepo() {
ISPConfigLog::info('Activating sury php repository.', true);
......
......@@ -40,7 +40,7 @@ deb http://security.ubuntu.com/ubuntu bionic-security multiverse
$cmd = 'freshclam';
$result = $this->exec($cmd, array(62));
if($result === false) {
throw new ISPConfigOSException('Command ' . $cmd . ' failed.');
//throw new ISPConfigOSException('Command ' . $cmd . ' failed.');
}
$this->startService('clamav-daemon');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment