summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/network-ups-tools/nut.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/community/network-ups-tools/nut.install')
-rw-r--r--abs/extra-testing/community/network-ups-tools/nut.install11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/extra-testing/community/network-ups-tools/nut.install b/abs/extra-testing/community/network-ups-tools/nut.install
index 5bec199..f7712a6 100644
--- a/abs/extra-testing/community/network-ups-tools/nut.install
+++ b/abs/extra-testing/community/network-ups-tools/nut.install
@@ -8,11 +8,18 @@ post_install() {
echo ">>> Before starting your UPSd daemon, you must"
echo ">>> edit /etc/ups/ups.conf in order to set your"
echo ">>> UPS driver and port."
- echo ">>> Then add upsd as a service."
- echo ">>> $ sudo add_service.sh upsd."
+ echo ">>> Then add the following services: upsdrvctl | upsd | upsmon"
+ echo ">>> i.e. $ sudo add_service.sh upsdrvctl."
+}
+
+post_upgrade() {
+ echo ">>> Ensure the following services exist: upsdrvctl | upsd | upsmon"
+ echo ">>> i.e. $ sudo add_service.sh upsdrvctl."
}
pre_remove() {
+ remove_service.sh upsdrvctl
+ remove_service.sh upsmon
remove_service.sh upsd
userdel nut >/dev/null 2>&1
groupdel nut >/dev/null 2>&1