This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 7954fe09 BIGTOP-3845: Add the command to create the /usr/bigtop folder
in the bigtop-select rpm package (#1035)
7954fe09 is described below
commit 7954fe09782932c73c26aed7961ebf18216c5a2f
Author: timyuer <[email protected]>
AuthorDate: Thu Oct 13 20:01:54 2022 +0800
BIGTOP-3845: Add the command to create the /usr/bigtop folder in the
bigtop-select rpm package (#1035)
---
bigtop-packages/src/common/bigtop-select/install_select.sh | 2 ++
bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec | 7 ++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/bigtop-packages/src/common/bigtop-select/install_select.sh
b/bigtop-packages/src/common/bigtop-select/install_select.sh
index 6534be7c..8101805d 100644
--- a/bigtop-packages/src/common/bigtop-select/install_select.sh
+++ b/bigtop-packages/src/common/bigtop-select/install_select.sh
@@ -67,10 +67,12 @@ LIB_DIR=${LIB_DIR:-/usr/lib/bigtop-select}
BIN_DIR=${BIN_DIR:-/usr/bin}
CONF_DIR=${CONF_DIR:-/etc/bigtop-select/conf.dist}
+STACK_ROOT_DIR=/usr/bigtop
STACK_SELECTOR=distro-select
CONF_SELECTOR=conf-select
# Install packages
install -d -p -m 755 $PREFIX${LIB_DIR}/
+install -d -p -m 755 $PREFIX${STACK_ROOT_DIR}/
install -p -m 755 ${DISTRO_DIR}/${STACK_SELECTOR} $PREFIX${LIB_DIR}/
install -p -m 755 ${DISTRO_DIR}/${CONF_SELECTOR} $PREFIX${LIB_DIR}/
diff --git a/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
b/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
index fe47e76c..1d748836 100644
--- a/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
+++ b/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
@@ -13,8 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-%define lib_dir /usr/lib/bigtop-select
-%define bin_dir /usr/bin
+%define lib_dir /usr/lib/bigtop-select
+%define bin_dir /usr/bin
+%define stack_root_dir /usr/bigtop
Name: bigtop-select
Version: %{bigtop_select_version}
@@ -69,7 +70,7 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE
%{lib_dir}
-#%{bin_dir}
+%{stack_root_dir}
%changelog