Skip to content

Commit e13e769

Browse files
authored
adding the template file to the etc dir
1 parent 427c391 commit e13e769

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ INSTALLATION_LOG=/tmp/jumper_agent_installation.log
3333
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3434
DEST_DIR=/opt/jumper_logging_agent
3535
FIFO_DIR=/var/run/jumper_logging_agent
36+
CONFIG_DIR=/etc/jumper_logging_agent
3637
SERVICE_USER=jumperagent
3738
SERVICE_NAME=jumper-agent
39+
CONFIG_FILE=config.json
3840

3941
if ! command -v virtualenv --version >/dev/null 2>&1; then
4042
echo Installing virtualenv...
@@ -51,6 +53,12 @@ echo Creating directories...
5153
rm -rf ${DEST_DIR}
5254
mkdir -p ${DEST_DIR}
5355
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+
5462
chown ${SERVICE_USER}:${SERVICE_USER} ${FIFO_DIR}
5563

5664
echo Copying files...

0 commit comments

Comments
 (0)