Till Brehm
2016-04-21 461977bd9cba195bbffb677ea417eea69d51dab2
Metronome init fix 2
2 files modified
6 ■■■■■ changed files
install/lib/installer_base.lib.php 2 ●●● patch | view | raw | blame | history
install/update.php 4 ●●● patch | view | raw | blame | history
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('metronome', 'restart'));
/*
writing new private key to 'smtpd.key'
install/update.php
@@ -526,9 +526,7 @@
    }
    if($conf['services']['xmpp']) {
        //if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system($inst->getinitcommand($conf['xmpp']['init_script'], 'restart').' &> /dev/null');
        // There is no metronome systemd unit at the moment, so we always use the init script.
        if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system('/etc/init.d/metronome restart &> /dev/null');
        if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system($inst->getinitcommand($conf['xmpp']['init_script'], 'restart').' &> /dev/null');
    }
    if($conf['services']['proxy']) {