12 lines
418 B
Bash
12 lines
418 B
Bash
#!/bin/bash
|
|
|
|
MYSTIC_DIR="$1"
|
|
|
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_client-start.sh > ${MYSTIC_DIR}/mrc_client-start
|
|
chmod +x ${MYSTIC_DIR}/mrc_client-start
|
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_client-stop.sh > ${MYSTIC_DIR}/mrc_client-stop
|
|
chmod +x ${MYSTIC_DIR}/mrc_client-stop
|
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc-client.service > /etc/systemd/system/mrc-client.service
|
|
systemctl daemon-reload
|
|
|