summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg.prerm.in
diff options
context:
space:
mode:
authorRageLtMan <rageltman [at] sempervictus>2023-03-04 16:10:00 -0500
committerRageLtMan <rageltman [at] sempervictus>2023-03-05 18:28:37 -0500
commit25e02216f87665996349c9c311d50801f3de8836 (patch)
treeddb6e7dc85b0171e833501a5ab184fca6e38a278 /debian/vyatta-cfg.prerm.in
parent6db96d9cfd881cd20aa8a63441cd680137def75f (diff)
downloadvyatta-cfg-25e02216f87665996349c9c311d50801f3de8836.tar.gz
vyatta-cfg-25e02216f87665996349c9c311d50801f3de8836.zip
Move postrm service hook to prerm
Diffstat (limited to 'debian/vyatta-cfg.prerm.in')
-rw-r--r--debian/vyatta-cfg.prerm.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/vyatta-cfg.prerm.in b/debian/vyatta-cfg.prerm.in
new file mode 100644
index 0000000..cc01594
--- /dev/null
+++ b/debian/vyatta-cfg.prerm.in
@@ -0,0 +1,5 @@
+#!/bin/bash -e
+
+if [ "$1" = "purge" ]; then
+ systemctl disable vyos-router.service >/dev/null || exit $?
+fi