2024-04-20 12:20:30 +02:00
|
|
|
if [ $MRCSERVER = "Yes" ]; then
|
2024-04-20 13:35:01 +02:00
|
|
|
msg_info "Setting up Multi Relay Chat Server for ${APP}"
|
2024-04-20 12:20:30 +02:00
|
|
|
apt install -y build-essential &>/dev/null
|
|
|
|
wget -N https://sourceforge.net/projects/mystic-relay-chat/files/mrc_${MRC_SERVER_VER}.zip -O $MSTEMPDIR/mrc${MRC_SERVER_VER}.zip &>/dev/null
|
|
|
|
rm -rf $MSTEMPDIR/mrc${MRC_SERVER_VER} &>/dev/null
|
|
|
|
mkdir -p $MSTEMPDIR/mrc${MRC_SERVER_VER} &>/dev/null
|
|
|
|
pushd $MSTEMPDIR/mrc${MRC_SERVER_VER} &>/dev/null
|
|
|
|
unzip ../mrc${MRC_SERVER_VER}.zip &>/dev/null
|
2024-04-20 12:25:39 +02:00
|
|
|
cp mrc_server.py ${MYSTIC_DIR}/
|
2024-04-20 12:20:30 +02:00
|
|
|
cp sysop.doc ${MYSTIC_DIR}/docs/mrc_server_sysop.doc
|
|
|
|
cp whatsnew.txt ${MYSTIC_DIR}/docs/mrc_server_whatsnew.txt
|
2024-04-20 12:28:13 +02:00
|
|
|
cp servers.lst ${MYSTIC_DIR}/docs/mrc_server_server.lst
|
2024-04-20 12:20:30 +02:00
|
|
|
popd &>/dev/null
|
2024-04-20 14:49:31 +02:00
|
|
|
mkdir -p ${MYSTIC_DIR}/data/mrc &>/dev/null
|
2024-04-20 13:35:01 +02:00
|
|
|
msg_ok "Setting up Multi Relay Chat Server for ${APP}"
|
2024-04-18 07:51:25 +02:00
|
|
|
|
2024-04-20 13:35:01 +02:00
|
|
|
msg_info "Installing Multi Relay Chat Server Systemd Start/Stop Scripts and Service File"
|
2024-04-20 12:32:28 +02:00
|
|
|
pushd $MSTEMPDIR/mystic/mrc-server &>/dev/null
|
2024-04-20 10:00:07 +02:00
|
|
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-start.sh > ${MYSTIC_DIR}/mrc_server-start
|
2024-04-18 07:51:25 +02:00
|
|
|
chmod +x ${MYSTIC_DIR}/mrc_server-start
|
2024-04-20 10:00:07 +02:00
|
|
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-stop.sh > ${MYSTIC_DIR}/mrc_server-stop
|
2024-04-18 07:51:25 +02:00
|
|
|
chmod +x ${MYSTIC_DIR}/mrc_server-stop
|
|
|
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc-server.service > /etc/systemd/system/mrc-server.service
|
|
|
|
systemctl daemon-reload
|
2024-04-20 12:20:30 +02:00
|
|
|
popd &>/dev/null
|
2024-04-20 13:35:01 +02:00
|
|
|
msg_ok "Installing Multi Relay Chat Server Systemd Start/Stop Scripts and Service File"
|
2024-04-18 07:51:25 +02:00
|
|
|
|
2024-04-20 12:20:30 +02:00
|
|
|
fi
|