Skip to content

Commit ce48b52

Browse files
committed
DSP-13836 fix assembling
withouth this change, tar file contained directory "." with desired content. Now content is placed at the root of the archive.
1 parent 542fef3 commit ce48b52

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/server_package.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash -e
2+
3+
set -x
24
# Script for packaging all the job server files to .tar.gz for Mesos or other single-image deploys
3-
WORK_DIR=/tmp/job-server
5+
WORK_DIR="$TMPDIR"/tmp/job-server
46

57
if [ "$#" -ne 1 ]; then
68
echo "Syntax: ${0} <Environment>"
@@ -50,8 +52,7 @@ pushd "${bin}/.." > /dev/null
5052
bin/manager_start.sh
5153
bin/setenv.sh
5254
${CONFIG_DIR}/${ENV}.conf
53-
config/shiro.ini
54-
config/log4j-server.properties"
55+
config/logback-server.xml"
5556

5657
rm -rf $WORK_DIR
5758
mkdir -p $WORK_DIR
@@ -62,7 +63,7 @@ popd > /dev/null
6263
pushd "${WORK_DIR}" > /dev/null
6364
TAR_FILE="${WORK_DIR}/job-server.tar.gz"
6465
rm -f "${TAR_FILE}"
65-
tar zcvf "${TAR_FILE}" ./*
66+
tar zcvf "${TAR_FILE}" *
6667
popd > /dev/null
6768

6869
echo "Created distribution at ${TAR_FILE}"

0 commit comments

Comments
 (0)