8000 fix debian prerm script (#4673) · ashang/arangodb@abde907 · GitHub
[go: up one dir, main page]

Skip to content

Commit abde907

Browse files
ObiWahnjsteemann
authored andcommitted
fix debian prerm script (arangodb#4673)
1 parent 6df7bf4 commit abde907

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Installation/debian/prerm.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if [ -x "/etc/init.d/arangodb3" ]; then
77
fi
88

99
if [ -d /run/systemd/system ] ; then
10-
deb-systemd-invoke stop @CPACK_PACKAGE_NAME@.service >/dev/null
10+
if systemctl list-unit-files | grep -q @CPACK_PACKAGE_NAME@.service ; then
11+
deb-systemd-invoke stop @CPACK_PACKAGE_NAME@.service
12+
fi
1113
fi
1214
# End automatically added section

0 commit comments

Comments
 (0)
0