From aa8cefeddae0f83230b5b332b2a4f9c5a6ddb0fa Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 3 Jun 2020 06:20:45 +0000 Subject: [PATCH] Add support for Solus distribution to maintainer scripts (#7585) --- scripts/post-install.sh | 3 +++ scripts/post-remove.sh | 3 +++ 2 files changed, 6 insertions(+) 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