Remove incorrect command references from post-installation scripts.

pull/530/head
Ross McDonald 2016-11-14 09:45:57 -06:00
parent f0f7d93c12
commit beebff0d99
1 changed files with 2 additions and 2 deletions

View File

@ -63,12 +63,12 @@ elif [[ -f /etc/debian_version ]]; then
which systemctl &>/dev/null which systemctl &>/dev/null
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
install_systemd install_systemd
systemctl restart telegraf || echo "WARNING: systemd not running." systemctl restart chronograf || echo "WARNING: systemd not running."
else else
# Assuming sysv # Assuming sysv
install_init install_init
install_update_rcd install_update_rcd
invoke-rc.d telegraf restart invoke-rc.d chronograf restart
fi fi
elif [[ -f /etc/os-release ]]; then elif [[ -f /etc/os-release ]]; then
source /etc/os-release source /etc/os-release