mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
added missed init script for clickhouse-server-base[#METR-12543]
This commit is contained in:
parent
b8549c7f06
commit
dcf240df8b
@ -29,13 +29,13 @@ if (${num_extra_args} GREATER 0)
|
||||
endif()
|
||||
|
||||
add_custom_target(${daemonname}-init.target ALL
|
||||
COMMAND sed -e 's,[@]DAEMON[@],${daemonname},g' < ${PROJECT_SOURCE_DIR}/tools/init.d/template > ${CMAKE_CURRENT_BINARY_DIR}/${daemonname}-metrika-yandex
|
||||
COMMAND sed -i 's,[@]CRONFILE[@],${daemonname}-metrika-yandex,g' ${CMAKE_CURRENT_BINARY_DIR}/${daemonname}-metrika-yandex
|
||||
COMMAND chmod a+x ${CMAKE_CURRENT_BINARY_DIR}/${daemonname}-metrika-yandex
|
||||
COMMAND sed -e 's,[@]DAEMON[@],${daemonname},g' < ${PROJECT_SOURCE_DIR}/tools/init.d/template > ${CMAKE_CURRENT_BINARY_DIR}/${package_name}
|
||||
COMMAND sed -i 's,[@]CRONFILE[@],${package_name},g' ${CMAKE_CURRENT_BINARY_DIR}/${package_name}
|
||||
COMMAND chmod a+x ${CMAKE_CURRENT_BINARY_DIR}/${package_name}
|
||||
COMMENT "Building ${daemonname}"
|
||||
)
|
||||
INSTALL(
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${daemonname}-metrika-yandex
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${package_name}
|
||||
DESTINATION /etc/init.d
|
||||
PERMISSIONS OWNER_EXECUTE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user