mirror of https://gitee.com/bigwinds/arangodb
we need to substitute the package name here too - else enterprise pac… (#3025)
This commit is contained in:
parent
fadafa6384
commit
b2bc8dee49
|
@ -62,21 +62,21 @@ db_stop
|
||||||
|
|
||||||
if test "@CPACK_SYSTEMD_FOUND@" -eq 1 ; then
|
if test "@CPACK_SYSTEMD_FOUND@" -eq 1 ; then
|
||||||
# This will only remove masks created by d-s-h on package removal.
|
# This will only remove masks created by d-s-h on package removal.
|
||||||
deb-systemd-helper unmask arangodb3.service >/dev/null || true
|
deb-systemd-helper unmask @CPACK_PACKAGE_NAME@.service >/dev/null || true
|
||||||
# was-enabled defaults to true, so new installations run enable.
|
# was-enabled defaults to true, so new installations run enable.
|
||||||
if deb-systemd-helper --quiet was-enabled arangodb3.service; then
|
if deb-systemd-helper --quiet was-enabled @CPACK_PACKAGE_NAME@.service; then
|
||||||
# Enables the unit on first installation, creates new
|
# Enables the unit on first installation, creates new
|
||||||
# symlinks on upgrades if the unit file has changed.
|
# symlinks on upgrades if the unit file has changed.
|
||||||
deb-systemd-helper enable arangodb3.service >/dev/null || true
|
deb-systemd-helper enable @CPACK_PACKAGE_NAME@.service >/dev/null || true
|
||||||
else
|
else
|
||||||
# Update the statefile to add new symlinks (if any), which need to be
|
# Update the statefile to add new symlinks (if any), which need to be
|
||||||
# cleaned up on purge. Also remove old symlinks.
|
# cleaned up on purge. Also remove old symlinks.
|
||||||
deb-systemd-helper update-state arangodb3.service >/dev/null || true
|
deb-systemd-helper update-state @CPACK_PACKAGE_NAME@.service >/dev/null || true
|
||||||
fi
|
fi
|
||||||
# Automatically added by dh_systemd_start
|
# Automatically added by dh_systemd_start
|
||||||
if [ -d /run/systemd/system ]; then
|
if [ -d /run/systemd/system ]; then
|
||||||
systemctl --system daemon-reload >/dev/null || true
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
deb-systemd-invoke start arangodb3.service >/dev/null || true
|
deb-systemd-invoke start @CPACK_PACKAGE_NAME@.service >/dev/null || true
|
||||||
fi
|
fi
|
||||||
# End automatically added section
|
# End automatically added section
|
||||||
else
|
else
|
||||||
|
|
|
@ -3,13 +3,13 @@ set -e
|
||||||
|
|
||||||
# Automatically added by dh_installinit
|
# Automatically added by dh_installinit
|
||||||
if [ -x "/etc/init.d/arangodb3" ]; then
|
if [ -x "/etc/init.d/arangodb3" ]; then
|
||||||
invoke-rc.d arangodb3 stop || exit $?
|
invoke-rc.d @CPACK_PACKAGE_NAME@ stop || exit $?
|
||||||
fi
|
fi
|
||||||
# End automatically added section
|
# End automatically added section
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
# Automatically added by dh_systemd_start
|
# Automatically added by dh_systemd_start
|
||||||
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
||||||
deb-systemd-invoke stop arangodb3.service >/dev/null
|
deb-systemd-invoke stop .service >/dev/null
|
||||||
fi
|
fi
|
||||||
# End automatically added section
|
# End automatically added section
|
|
@ -37,7 +37,10 @@ configure_file (
|
||||||
"${PROJECT_SOURCE_DIR}/Installation/debian/postinst.in"
|
"${PROJECT_SOURCE_DIR}/Installation/debian/postinst.in"
|
||||||
"${PROJECT_BINARY_DIR}/Installation/debian/postinst"
|
"${PROJECT_BINARY_DIR}/Installation/debian/postinst"
|
||||||
NEWLINE_STYLE UNIX)
|
NEWLINE_STYLE UNIX)
|
||||||
|
configure_file (
|
||||||
|
"${PROJECT_SOURCE_DIR}/Installation/debian/prerm.in"
|
||||||
|
"${PROJECT_BINARY_DIR}/Installation/debian/prerm"
|
||||||
|
NEWLINE_STYLE UNIX)
|
||||||
|
|
||||||
list(APPEND CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
|
list(APPEND CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
|
||||||
"${PROJECT_BINARY_DIR}/Installation/debian/templates"
|
"${PROJECT_BINARY_DIR}/Installation/debian/templates"
|
||||||
|
@ -45,8 +48,7 @@ list(APPEND CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
|
||||||
"${PROJECT_BINARY_DIR}/Installation/debian/postinst"
|
"${PROJECT_BINARY_DIR}/Installation/debian/postinst"
|
||||||
|
|
||||||
"${PROJECT_SOURCE_DIR}/Installation/debian/preinst"
|
"${PROJECT_SOURCE_DIR}/Installation/debian/preinst"
|
||||||
"${PROJECT_SOURCE_DIR}/Installation/debian/postrm"
|
"${PROJECT_SOURCE_DIR}/Installation/debian/postrm")
|
||||||
"${PROJECT_SOURCE_DIR}/Installation/debian/prerm")
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# specify which target archcitecture the package is going to be:
|
# specify which target archcitecture the package is going to be:
|
||||||
|
|
Loading…
Reference in New Issue