1
0
Fork 0

fix debian prerm script (#4673)

This commit is contained in:
Jan Christoph Uhde 2018-02-27 11:21:24 +01:00 committed by Jan
parent 6df7bf460a
commit abde907eae
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ if [ -x "/etc/init.d/arangodb3" ]; then
fi
if [ -d /run/systemd/system ] ; then
deb-systemd-invoke stop @CPACK_PACKAGE_NAME@.service >/dev/null
if systemctl list-unit-files | grep -q @CPACK_PACKAGE_NAME@.service ; then
deb-systemd-invoke stop @CPACK_PACKAGE_NAME@.service
fi
fi
# End automatically added section