add logging
This commit is contained in:
parent
b833d938b4
commit
7b1b5d6dae
@ -60,12 +60,12 @@ msg_ok "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}"
|
|||||||
|
|
||||||
msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||||
MID=$(id -u mystic)
|
MID=$(id -u mystic)
|
||||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
|
||||||
cmd_exec chmod +x ${MYSTIC_DIR}/mis-start
|
cmd_exec chmod +x ${MYSTIC_DIR}/mis-start
|
||||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
|
||||||
cmd_exec chmod +x ${MYSTIC_DIR}/mis-stop
|
cmd_exec chmod +x ${MYSTIC_DIR}/mis-stop
|
||||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
|
||||||
cmd_exec sed -e "s!@MID@!${MID}!g" $MSTEMPDIR/mystic/mystic/mystic.conf.tmpfiles.d > /etc/tmpfiles.d/mystic.conf
|
sed -e "s!@MID@!${MID}!g" $MSTEMPDIR/mystic/mystic/mystic.conf.tmpfiles.d > /etc/tmpfiles.d/mystic.conf
|
||||||
cmd_exec systemctl daemon-reload
|
cmd_exec systemctl daemon-reload
|
||||||
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user