File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,10 @@ INSTALLATION_LOG=/tmp/jumper_agent_installation.log
33
33
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
34
34
DEST_DIR=/opt/jumper_logging_agent
35
35
FIFO_DIR=/var/run/jumper_logging_agent
36
+ CONFIG_DIR=/etc/jumper_logging_agent
36
37
SERVICE_USER=jumperagent
37
38
SERVICE_NAME=jumper-agent
39
+ CONFIG_FILE=config.json
38
40
39
41
if ! command -v virtualenv --version > /dev/null 2>&1 ; then
40
42
echo Installing virtualenv...
@@ -51,6 +53,12 @@ echo Creating directories...
51
53
rm -rf ${DEST_DIR}
52
54
mkdir -p ${DEST_DIR}
53
55
mkdir -p ${FIFO_DIR}
56
+
57
+ if [ ! -d ${CONFIG_DIR} ]; then
58
+ mkdir -p ${CONFIG_DIR}
59
+ cp ${CONFIG_FILE} ${CONFIG_DIR}
60
+ fi
61
+
54
62
chown ${SERVICE_USER} :${SERVICE_USER} ${FIFO_DIR}
55
63
56
64
echo Copying files...
You can’t perform that action at this time.
0 commit comments