File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
+
3
+ set -x
2
4
# 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
4
6
5
7
if [ " $# " -ne 1 ]; then
6
8
echo " Syntax: ${0} <Environment>"
@@ -50,8 +52,7 @@ pushd "${bin}/.." > /dev/null
50
52
bin/manager_start.sh
51
53
bin/setenv.sh
52
54
${CONFIG_DIR} /${ENV} .conf
53
- config/shiro.ini
54
- config/log4j-server.properties"
55
+ config/logback-server.xml"
55
56
56
57
rm -rf $WORK_DIR
57
58
mkdir -p $WORK_DIR
@@ -62,7 +63,7 @@ popd > /dev/null
62
63
pushd " ${WORK_DIR} " > /dev/null
63
64
TAR_FILE=" ${WORK_DIR} /job-server.tar.gz"
64
65
rm -f " ${TAR_FILE} "
65
- tar zcvf " ${TAR_FILE} " ./ *
66
+ tar zcvf " ${TAR_FILE} " *
66
67
popd > /dev/null
67
68
68
69
echo " Created distribution at ${TAR_FILE} "
You can’t perform that action at this time.
0 commit comments