add logging

This commit is contained in:
Mario Fetka 2024-07-06 16:25:11 +02:00
parent cab937085b
commit 111edfe060
3 changed files with 28 additions and 28 deletions

View File

@ -5,19 +5,19 @@ cmd_exec rm -rf $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>>$INSTALLLOG
cmd_exec mkdir -p $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>>$INSTALLLOG
cmd_exec pushd $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>>$INSTALLLOG
cmd_exec unzip ../IniMod_linux_${INIMOD_ARCH}.zip &>>$INSTALLLOG
cmd_exec cp inimod ${MYSTIC_DIR}
cmd_exec chmod +x ${MYSTIC_DIR}/inimod
cmd_exec cp README.txt ${MYSTIC_DIR}/docs/inimod_README.txt
cmd_exec cp inimod ${MYSTIC_DIR} &>>$INSTALLLOG
cmd_exec chmod +x ${MYSTIC_DIR}/inimod &>>$INSTALLLOG
cmd_exec cp README.txt ${MYSTIC_DIR}/docs/inimod_README.txt &>>$INSTALLLOG
cmd_exec popd &>>$INSTALLLOG
msg_ok "Installing bbs.disconnected-by-peer.at Scripts Dependencies for ${APP}"
msg_info "Installing DbP Cron/banip/unbanip Scripts"
cmd_exec pushd $MSTEMPDIR/mystic/dbp &>>$INSTALLLOG
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" cron.sh > ${MYSTIC_DIR}/cron
cmd_exec chmod +x ${MYSTIC_DIR}/cron
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" banunban.sh > ${MYSTIC_DIR}/banunban
cmd_exec chmod +x ${MYSTIC_DIR}/banunban
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" dbp.ini > ${MYSTIC_DIR}/dbp.ini
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" cron.sh > ${MYSTIC_DIR}/cron
cmd_exec chmod +x ${MYSTIC_DIR}/cron &>>$INSTALLLOG
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" banunban.sh > ${MYSTIC_DIR}/banunban
cmd_exec chmod +x ${MYSTIC_DIR}/banunban &>>$INSTALLLOG
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" dbp.ini > ${MYSTIC_DIR}/dbp.ini
cmd_exec popd &>>$INSTALLLOG
msg_ok "Installing DbP Cron/banip/unbanip Scripts"

View File

@ -8,23 +8,23 @@ cmd_exec rm -rf $MSTEMPDIR/pn-mrc${MRC_VER} &>>$INSTALLLOG
cmd_exec mkdir -p $MSTEMPDIR/pn-mrc${MRC_VER} &>>$INSTALLLOG
cmd_exec pushd $MSTEMPDIR/pn-mrc${MRC_VER} &>>$INSTALLLOG
cmd_exec unzip ../pn-mrc${MRC_VER}.zip &>>$INSTALLLOG
cmd_exec cp mrc_${MRC_VER}/mrc_{client,config}.py ${MYSTIC_DIR}/
cmd_exec cp mrc_${MRC_VER}/scripts/* ${MYSTIC_DIR}/themes/default/scripts/
cmd_exec cp mrc_${MRC_VER}/text/* ${MYSTIC_DIR}/themes/default/text/
cmd_exec cp installation.asc ${MYSTIC_DIR}/docs/mrc_installation.asc
cmd_exec cp mrc_${MRC_VER}/mrc_{client,config}.py ${MYSTIC_DIR}/ &>>$INSTALLLOG
cmd_exec cp mrc_${MRC_VER}/scripts/* ${MYSTIC_DIR}/themes/default/scripts/ &>>$INSTALLLOG
cmd_exec cp mrc_${MRC_VER}/text/* ${MYSTIC_DIR}/themes/default/text/ &>>$INSTALLLOG
cmd_exec cp installation.asc ${MYSTIC_DIR}/docs/mrc_installation.asc &>>$INSTALLLOG
cmd_exec popd &>>$INSTALLLOG
cmd_exec mkdir -p ${MYSTIC_DIR}/data/mrc &>>$INSTALLLOG
msg_ok "Setting up Multi Relay Chat for ${APP}"
msg_info "Installing Multi Relay Chat Systemd Start/Stop Scripts and Service File"
cmd_exec pushd $MSTEMPDIR/mystic/mrc-client &>>$INSTALLLOG
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_client-start.sh > ${MYSTIC_DIR}/mrc_client-start
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_client-start
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_client-stop.sh > ${MYSTIC_DIR}/mrc_client-stop
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_client-stop
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc-client.service > /etc/systemd/system/mrc-client.service
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_client-start.sh > ${MYSTIC_DIR}/mrc_client-start
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_client-start &>>$INSTALLLOG
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_client-stop.sh > ${MYSTIC_DIR}/mrc_client-stop
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_client-stop &>>$INSTALLLOG
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc-client.service > /etc/systemd/system/mrc-client.service
cmd_exec popd &>>$INSTALLLOG
cmd_exec systemctl daemon-reload
cmd_exec systemctl daemon-reload &>>$INSTALLLOG
msg_ok "Installing Multi Relay Chat Systemd Start/Stop Scripts and Service File"
fi

View File

@ -8,22 +8,22 @@ cmd_exec rm -rf $MSTEMPDIR/mrc${MRC_SERVER_VER} &>>$INSTALLLOG
cmd_exec mkdir -p $MSTEMPDIR/mrc${MRC_SERVER_VER} &>>$INSTALLLOG
cmd_exec pushd $MSTEMPDIR/mrc${MRC_SERVER_VER} &>>$INSTALLLOG
cmd_exec unzip ../mrc${MRC_SERVER_VER}.zip &>>$INSTALLLOG
cmd_exec cp mrc_server.py ${MYSTIC_DIR}/
cmd_exec cp sysop.doc ${MYSTIC_DIR}/docs/mrc_server_sysop.doc
cmd_exec cp whatsnew.txt ${MYSTIC_DIR}/docs/mrc_server_whatsnew.txt
cmd_exec cp servers.lst ${MYSTIC_DIR}/docs/mrc_server_server.lst
cmd_exec cp mrc_server.py ${MYSTIC_DIR}/ &>>$INSTALLLOG
cmd_exec cp sysop.doc ${MYSTIC_DIR}/docs/mrc_server_sysop.doc &>>$INSTALLLOG
cmd_exec cp whatsnew.txt ${MYSTIC_DIR}/docs/mrc_server_whatsnew.txt &>>$INSTALLLOG
cmd_exec cp servers.lst ${MYSTIC_DIR}/docs/mrc_server_server.lst &>>$INSTALLLOG
cmd_exec popd &>>$INSTALLLOG
cmd_exec mkdir -p ${MYSTIC_DIR}/data/mrc &>>$INSTALLLOG
msg_ok "Setting up Multi Relay Chat Server for ${APP}"
msg_info "Installing Multi Relay Chat Server Systemd Start/Stop Scripts and Service File"
cmd_exec pushd $MSTEMPDIR/mystic/mrc-server &>>$INSTALLLOG
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-start.sh > ${MYSTIC_DIR}/mrc_server-start
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_server-start
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-stop.sh > ${MYSTIC_DIR}/mrc_server-stop
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_server-stop
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc-server.service > /etc/systemd/system/mrc-server.service
cmd_exec systemctl daemon-reload
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-start.sh > ${MYSTIC_DIR}/mrc_server-start
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_server-start &>>$INSTALLLOG
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-stop.sh > ${MYSTIC_DIR}/mrc_server-stop
cmd_exec chmod +x ${MYSTIC_DIR}/mrc_server-stop &>>$INSTALLLOG
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc-server.service > /etc/systemd/system/mrc-server.service
cmd_exec systemctl daemon-reload &>>$INSTALLLOG
cmd_exec popd &>>$INSTALLLOG
msg_ok "Installing Multi Relay Chat Server Systemd Start/Stop Scripts and Service File"