Marius Burkard
2016-04-26 5152e9a75e6e0ed4dc26358e4e608ce684147b32
install/lib/installer_base.lib.php
@@ -1630,7 +1630,7 @@
        caselog('chmod u+x /etc/init.d/metronome', __FILE__, __LINE__);
        caselog('update-rc.d metronome defaults', __FILE__, __LINE__);
        exec($this->getinitcommand('xmpp', 'restart'));
        exec($this->getinitcommand($conf['xmpp']['init_script'], 'restart'));
/*
writing new private key to 'smtpd.key'
@@ -1842,12 +1842,14 @@
   public function configure_ufw_firewall()
   {
      $configfile = 'ufw.conf';
      if(is_file('/etc/ufw/ufw.conf')) copy('/etc/ufw/ufw.conf', '/etc/ufw/ufw.conf~');
      $content = rf("tpl/".$configfile.".master");
      wf('/etc/ufw/ufw.conf', $content);
      exec('chmod 600 /etc/ufw/ufw.conf');
      exec('chown root:root /etc/ufw/ufw.conf');
      if($this->is_update == false) {
         $configfile = 'ufw.conf';
         if(is_file('/etc/ufw/ufw.conf')) copy('/etc/ufw/ufw.conf', '/etc/ufw/ufw.conf~');
         $content = rf("tpl/".$configfile.".master");
         wf('/etc/ufw/ufw.conf', $content);
         exec('chmod 600 /etc/ufw/ufw.conf');
         exec('chown root:root /etc/ufw/ufw.conf');
      }
   }
   public function configure_bastille_firewall() {