mystic/mis/install-v1.sh

12 lines
362 B
Bash
Raw Normal View History

2023-01-07 04:06:15 +01:00
#!/bin/bash
2023-01-07 04:47:44 +01:00
MYSTIC_DIR="$1"
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mis-start.sh > ${MYSTIC_DIR}/mis-start
chmod +x ${MYSTIC_DIR}/mis-start
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mis-stop.sh > ${MYSTIC_DIR}/mis-stop
chmod +x ${MYSTIC_DIR}/mis-stop
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mis.service > /etc/systemd/system/mis.service
2023-01-07 04:06:15 +01:00
systemctl daemon-reload