File: postrm

package info (click to toggle)
prometheus-node-exporter 0.13.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,380 kB
  • ctags: 534
  • sloc: sh: 164; makefile: 86
file content (17 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# postrm script for prometheus-node-exporter
# Script executed after the package is removed.

set -e

case "$1" in
  purge)
        rm -rf /var/lib/prometheus/node-exporter/ \
            /var/log/prometheus/prometheus-node-exporter.log \
            /var/log/prometheus/prometheus-node-exporter.log.* \
            /var/run/prometheus/prometheus-node-exporter.pid
	# We do NOT remove the system user.
	;;
esac

#DEBHELPER#