Add support for Solus distribution to maintainer scripts (#7585)

This commit is contained in:
Yarmo Mackenbach 2020-06-03 06:20:45 +00:00 committed by GitHub
parent af8093e00e
commit aa8cefedda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -101,5 +101,8 @@ elif [[ -f /etc/os-release ]]; then
else
install_chkconfig
fi
elif [[ "$NAME" = "Solus" ]]; then
# Solus logic
install_systemd /usr/lib/systemd/system/telegraf.service
fi
fi

View File

@ -59,5 +59,8 @@ elif [[ -f /etc/os-release ]]; then
# Amazon Linux logic
disable_chkconfig
fi
elif [[ "$NAME" = "Solus" ]]; then
rm -f /etc/default/telegraf
disable_systemd /usr/lib/systemd/system/telegraf.service
fi
fi