Browse Source

remove line from /etc/sudoers which was added in previous versions

update
Sebastian 11 months ago
parent
commit
426cbb3e39
Signed by: imo GPG Key ID: AFA10CBFE4391C0C
  1. 3
      debian/postrm

3
debian/postrm

@ -19,6 +19,9 @@ set -e
case "$1" in
remove|purge)
# Removing sudoers line which was added in previous versions
sed -i '/zabbix-check-sshkey\.sh/d' /etc/sudoers
if command -v systemctl >/dev/null 2>&1; then
deb-systemd-invoke restart zabbix-agent || true
elif command -v invoke-rc.d >/dev/null 2>&1; then

Loading…
Cancel
Save