Skip to content

Commit

Permalink
* Copy sample config to /etc/heka/conf.d using RPM post-install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre F de Miranda committed Sep 21, 2015
1 parent 2327fea commit de07faf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ elseif(UNIX)
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION /usr/share/man)
set(CPACK_RPM_PACKAGE_REQUIRES_PRE "shadow-utils")
set(CPACK_RPM_PRE_INSTALL_SCRIPT_FILE "${CMAKE_SOURCE_DIR}/rpm/heka.preinst.in")
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_SOURCE_DIR}/rpm/heka.postinst.in")
endif()
endif()

Expand Down
5 changes: 5 additions & 0 deletions rpm/heka.postinst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set -eu

install -d -m0755 -oroot -groot /etc/heka/conf.d/
install -m0744 -oroot -groot -T /usr/share/heka/examples/hekad.toml /etc/heka/conf.d/00-hekad.toml
exit 0

0 comments on commit de07faf

Please sign in to comment.