diff --git a/scripts/post-install.sh b/scripts/post-install.sh index 0f197467e..f37265593 100644 --- a/scripts/post-install.sh +++ b/scripts/post-install.sh @@ -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 diff --git a/scripts/post-remove.sh b/scripts/post-remove.sh index 533a4fec1..bda08e2cb 100644 --- a/scripts/post-remove.sh +++ b/scripts/post-remove.sh @@ -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