Commit 461977bd authored by Till Brehm's avatar Till Brehm
Browse files

Metronome init fix 2

parent d5fb3044
......@@ -1630,7 +1630,7 @@ class installer_base {
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'
......
......@@ -526,9 +526,7 @@ if($reconfigure_services_answer == 'yes') {
}
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']) {
......
Markdown is supported
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