From 2e951f09f7de683ef897c9198f3014c2c33914bd Mon Sep 17 00:00:00 2001 From: morningman Date: Thu, 7 Sep 2017 15:57:26 +0800 Subject: [PATCH] change build script to retain the permissions of all start and stop scripts --- be/CMakeLists.txt | 3 +++ build.sh | 4 ++-- fe/build.xml | 9 ++++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 2d3b5bbbcb4f5a..0d81c21613e56a 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -436,6 +436,9 @@ install(DIRECTORY DESTINATION ${OUTPUT_DIR}/conf) install(FILES ${BASE_DIR}/../bin/start_be.sh ${BASE_DIR}/../bin/stop_be.sh + PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE + GROUP_READ GROUP_WRITE GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE DESTINATION ${OUTPUT_DIR}/bin) install(FILES diff --git a/build.sh b/build.sh index c7ea8cfcbd8ce7..9d3d2c7172aa36 100755 --- a/build.sh +++ b/build.sh @@ -184,10 +184,10 @@ mkdir -p ${PALO_OUTPUT} #Copy Frontend and Backend if [ ${BUILD_FE} -eq 1 ]; then - cp -R ${PALO_HOME}/fe/output ${PALO_OUTPUT}/fe + cp -rp ${PALO_HOME}/fe/output ${PALO_OUTPUT}/fe fi if [ ${BUILD_BE} -eq 1 ]; then - cp -R ${PALO_HOME}/be/output ${PALO_OUTPUT}/be + cp -rp ${PALO_HOME}/be/output ${PALO_OUTPUT}/be fi echo "***************************************" diff --git a/fe/build.xml b/fe/build.xml index 15bb4a92e80ac6..951ec6820fbb21 100644 --- a/fe/build.xml +++ b/fe/build.xml @@ -96,9 +96,12 @@ - - - + + + + + +