Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
rvi_ctl.template: get rid of dependecy on "install"
Browse files Browse the repository at this point in the history
Use mkdir instead which is most certanly already in place on the
device, otherwise this script will have a silent dependecy on
"coreutils" which is normally not used on embedded systems.

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
  • Loading branch information
mirzak committed Jul 27, 2018
1 parent d63dd1c commit c50dd6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/rvi_ctl.template
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ then
else
RUNDIR=${RVI_RUNDIR}
fi
install -d --mode=0755 ${RUNDIR}
mkdir -m 755 -p ${RUNDIR}

cd ${RUNDIR}
RVI_LOGDIR="${RVI_LOGDIR}" ${RVI_BINDIR}/setup_gen rvi ${CONFIG_FILE} rvi
)
Expand All @@ -122,7 +123,8 @@ LAUNCH="${ERL} -boot ${RUNDIR}/rvi/start -sname ${SNAME} -config ${RUNDIR}/rvi/s

case "${CMD}" in
start)
install -D -d --mode 0755 ${RVI_LOGDIR}
mkdir -m 755 -p ${RVI_LOGDIR}

exec run_erl -daemon ${RUNDIR}/ ${RVI_LOGDIR} "exec ${LAUNCH}"
;;

Expand Down

0 comments on commit c50dd6c

Please sign in to comment.