File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -1558,14 +1558,10 @@ ldconfig
15581558 list (APPEND CPACK_DEBIAN_RUNTIME_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR} /scripts/postinst;${PROJECT_BINARY_DIR} /scripts/prerm" )
15591559 endif (FLB_RUN_LDCONFIG)
15601560
1561- file (WRITE ${PROJECT_BINARY_DIR} /scripts/postinst "#!/bin/sh
1562- set -e
1563- ${LDCONFIG_SCRIPT_CMDS}
1564- if [ \"\$ 1\" = \" configure\" ]; then
1565- systemctl --system daemon-reload >/dev/null || true
1566- systemctl try-restart ${FLB_OUT_NAME} .service >/dev/null || true
1567- fi
1568- " )
1561+ configure_file (
1562+ ${CMAKE_CURRENT_SOURCE_DIR} /cpack/debian/postinst.in
1563+ ${PROJECT_BINARY_DIR} /scripts/postinst
1564+ )
15691565
15701566 list (APPEND CPACK_DEBIAN_RUNTIME_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR} /scripts/postinst;${PROJECT_BINARY_DIR} /scripts/prerm" )
15711567
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+ @LDCONFIG_POSTINST_CMDS@
4+ if [ " $1 " = " configure" ]; then
5+ systemctl --system daemon-reload > /dev/null || true
6+ systemctl try-restart @FLB_OUT_NAME@.service > /dev/null || true
7+ fi
You can’t perform that action at this time.
0 commit comments