add tempfile.d file
This commit is contained in:
parent
d95a2904b3
commit
e95f8c4651
@ -54,11 +54,13 @@ find ${MYSTIC_DIR} -name '*.ms' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
msg_ok "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}"
|
||||
|
||||
msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||
MID=$(id -u mystic)
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
|
||||
chmod +x ${MYSTIC_DIR}/mis-start
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
|
||||
chmod +x ${MYSTIC_DIR}/mis-stop
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
|
||||
sed -e "s!@MID@!${MID}!g" $MSTEMPDIR/mystic/mystic/mystic.conf.tmpfiles.d > /etc/tmpfiles.d/mystic.conf
|
||||
systemctl daemon-reload
|
||||
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||
|
||||
|
1
mystic/mystic.conf.tmpfiles.d
Normal file
1
mystic/mystic.conf.tmpfiles.d
Normal file
@ -0,0 +1 @@
|
||||
d /run/user/@MID@ 0755 mystic mystic -
|
Loading…
Reference in New Issue
Block a user