add logging
This commit is contained in:
parent
34a6606065
commit
74d6291522
@ -1,30 +1,30 @@
|
||||
if [ $CRYPT = "Yes" ]; then
|
||||
msg_info "Setting up ${APP} cryptlib for ssh/ssl (be patient compiling cryptlib)"
|
||||
apt install -y build-essential &>/dev/null
|
||||
apt install -y gcc-9 g++-9 cpp-9 gcc g++ cpp &>/dev/null
|
||||
apt install -y patch &>/dev/null
|
||||
apt install -y dos2unix &>/dev/null
|
||||
wget -N http://www.mysticbbs.com/downloads/cl345.zip -O $MSTEMPDIR/cryptlib345.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/cryptlib-3.4.5 &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/cryptlib-3.4.5 &>/dev/null
|
||||
pushd $MSTEMPDIR/cryptlib-3.4.5 &>/dev/null
|
||||
unzip ../cryptlib345.zip &>/dev/null
|
||||
dos2unix tools/* &>/dev/null
|
||||
dos2unix kernel/* &>/dev/null
|
||||
patch -p1 -i $MSTEMPDIR/mystic/cryptlib/patches/gccversion-345.patch &>/dev/null
|
||||
patch -p0 -i $MSTEMPDIR/mystic/cryptlib/patches/cl-linux-yield.patch &>/dev/null
|
||||
ln -sf gcc-9 /usr/bin/gcc &>/dev/null
|
||||
ln -sf g++-9 /usr/bin/g++ &>/dev/null
|
||||
ln -sf cpp-9 /usr/bin/cpp &>/dev/null
|
||||
make shared &>/dev/null
|
||||
cp libcl.so.3.4.5 ${LIBDIR}/ &>/dev/null
|
||||
ln -sf libcl.so.3.4.5 ${LIBDIR}/libcl.so.3.4 &>/dev/null
|
||||
ln -sf libcl.so.3.4 ${LIBDIR}/libcl.so.3 &>/dev/null
|
||||
ln -sf libcl.so.3 ${LIBDIR}/libcl.so &>/dev/null
|
||||
popd &>/dev/null
|
||||
cmd_exec apt install -y build-essential &>>$INSTALLLOG
|
||||
cmd_exec apt install -y gcc-9 g++-9 cpp-9 gcc g++ cpp &>>$INSTALLLOG
|
||||
cmd_exec apt install -y patch &>>$INSTALLLOG
|
||||
cmd_exec apt install -y dos2unix &>>$INSTALLLOG
|
||||
cmd_exec wget -N http://www.mysticbbs.com/downloads/cl345.zip -O $MSTEMPDIR/cryptlib345.zip &>>$INSTALLLOG
|
||||
cmd_exec rm -rf $MSTEMPDIR/cryptlib-3.4.5 &>>$INSTALLLOG
|
||||
cmd_exec mkdir -p $MSTEMPDIR/cryptlib-3.4.5 &>>$INSTALLLOG
|
||||
cmd_exec pushd $MSTEMPDIR/cryptlib-3.4.5 &>>$INSTALLLOG
|
||||
cmd_exec unzip ../cryptlib345.zip &>>$INSTALLLOG
|
||||
cmd_exec dos2unix tools/* &>>$INSTALLLOG
|
||||
cmd_exec dos2unix kernel/* &>>$INSTALLLOG
|
||||
cmd_exec patch -p1 -i $MSTEMPDIR/mystic/cryptlib/patches/gccversion-345.patch &>>$INSTALLLOG
|
||||
cmd_exec patch -p0 -i $MSTEMPDIR/mystic/cryptlib/patches/cl-linux-yield.patch &>>$INSTALLLOG
|
||||
cmd_exec ln -sf gcc-9 /usr/bin/gcc &>>$INSTALLLOG
|
||||
cmd_exec ln -sf g++-9 /usr/bin/g++ &>>$INSTALLLOG
|
||||
cmd_exec ln -sf cpp-9 /usr/bin/cpp &>>$INSTALLLOG
|
||||
cmd_exec make shared &>>$INSTALLLOG
|
||||
cmd_exec cp libcl.so.3.4.5 ${LIBDIR}/ &>>$INSTALLLOG
|
||||
cmd_exec ln -sf libcl.so.3.4.5 ${LIBDIR}/libcl.so.3.4 &>>$INSTALLLOG
|
||||
cmd_exec ln -sf libcl.so.3.4 ${LIBDIR}/libcl.so.3 &>>$INSTALLLOG
|
||||
cmd_exec ln -sf libcl.so.3 ${LIBDIR}/libcl.so &>>$INSTALLLOG
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
|
||||
apt purge -y gcc g++ cpp &>/dev/null
|
||||
apt install -y gcc g++ cpp &>/dev/null
|
||||
cmd_exec apt purge -y gcc g++ cpp &>>$INSTALLLOG
|
||||
cmd_exec apt install -y gcc g++ cpp &>>$INSTALLLOG
|
||||
msg_ok "Setting up ${APP} cryptlib for ssh/ssl (be patient compiling cryptlib)"
|
||||
|
||||
fi
|
||||
|
@ -1,24 +1,24 @@
|
||||
if [ $DBPSCRIPTS = "Yes" ]; then
|
||||
msg_info "Installing bbs.disconnected-by-peer.at Scripts Dependencies for ${APP}"
|
||||
wget -N https://ftp.disconnected-by-peer.at/IniMod/IniMod_linux_${INIMOD_ARCH}.zip -O $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH}.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>/dev/null
|
||||
pushd $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>/dev/null
|
||||
unzip ../IniMod_linux_${INIMOD_ARCH}.zip &>/dev/null
|
||||
cp inimod ${MYSTIC_DIR}
|
||||
chmod +x ${MYSTIC_DIR}/inimod
|
||||
cp README.txt ${MYSTIC_DIR}/docs/inimod_README.txt
|
||||
popd &>/dev/null
|
||||
cmd_exec wget -N https://ftp.disconnected-by-peer.at/IniMod/IniMod_linux_${INIMOD_ARCH}.zip -O $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH}.zip &>>$INSTALLLOG
|
||||
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 popd &>>$INSTALLLOG
|
||||
msg_ok "Installing bbs.disconnected-by-peer.at Scripts Dependencies for ${APP}"
|
||||
|
||||
msg_info "Installing DbP Cron/banip/unbanip Scripts"
|
||||
pushd $MSTEMPDIR/mystic/dbp &>/dev/null
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" cron.sh > ${MYSTIC_DIR}/cron
|
||||
chmod +x ${MYSTIC_DIR}/cron
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" banunban.sh > ${MYSTIC_DIR}/banunban
|
||||
chmod +x ${MYSTIC_DIR}/banunban
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" dbp.ini > ${MYSTIC_DIR}/dbp.ini
|
||||
popd &>/dev/null
|
||||
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
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Installing DbP Cron/banip/unbanip Scripts"
|
||||
|
||||
fi
|
||||
|
@ -1,12 +1,12 @@
|
||||
if [ "${DOSEMU}" = "Yes" ]; then
|
||||
if [ "${DOSEMUVER}" = "dosemu2" ]; then
|
||||
msg_info "Installing DosEmu2 Dependencies for ${APP}"
|
||||
pushd $MSTEMPDIR &>/dev/null
|
||||
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6d9cd73b401a130336ed0a56ebe1b5ded2ad45d6' | tee /etc/apt/trusted.gpg.d/code.launchpad.net-dosemu2.asc &>/dev/null
|
||||
echo "deb https://ppa.launchpadcontent.net/dosemu2/ppa/ubuntu $UBUNTU main" | tee /etc/apt/sources.list.d/dosemu2.list &>/dev/null
|
||||
apt update &>/dev/null
|
||||
apt install -y dosemu2 &>/dev/null
|
||||
#apt install -y install-otherdos &>/dev/null
|
||||
cmd_exec pushd $MSTEMPDIR &>>$INSTALLLOG
|
||||
cmd_exec curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6d9cd73b401a130336ed0a56ebe1b5ded2ad45d6' | tee /etc/apt/trusted.gpg.d/code.launchpad.net-dosemu2.asc &>>$INSTALLLOG
|
||||
cmd_exec echo "deb https://ppa.launchpadcontent.net/dosemu2/ppa/ubuntu $UBUNTU main" | tee /etc/apt/sources.list.d/dosemu2.list &>>$INSTALLLOG
|
||||
cmd_exec apt update &>>$INSTALLLOG
|
||||
cmd_exec apt install -y dosemu2 &>>$INSTALLLOG
|
||||
#cmd_exec apt install -y install-otherdos &>>$INSTALLLOG
|
||||
|
||||
msg_ok "Installing DosEmu2 Dependencies for ${APP}"
|
||||
|
||||
@ -14,12 +14,12 @@ fi
|
||||
|
||||
if [ "${DOSEMUVER}" = "dosemu" ]; then
|
||||
msg_info "Installing DosEmu Dependencies for ${APP}"
|
||||
pushd $MSTEMPDIR &>/dev/null
|
||||
curl 'https://deb.freexian.com/extended-lts/archive-key.gpg' | tee /etc/apt/trusted.gpg.d/freexian-archive-extended-lts.gpg &>/dev/null
|
||||
echo "deb http://deb.freexian.com/extended-lts stretch main contrib" | tee /etc/apt/sources.list.d/stretch.list &>/dev/null
|
||||
apt update &>/dev/null
|
||||
apt install -y dosemu &>/dev/null
|
||||
#apt install -y install-otherdos &>/dev/null
|
||||
cmd_exec pushd $MSTEMPDIR &>>$INSTALLLOG
|
||||
cmd_exec curl 'https://deb.freexian.com/extended-lts/archive-key.gpg' | tee /etc/apt/trusted.gpg.d/freexian-archive-extended-lts.gpg &>>$INSTALLLOG
|
||||
cmd_exec echo "deb http://deb.freexian.com/extended-lts stretch main contrib" | tee /etc/apt/sources.list.d/stretch.list &>>$INSTALLLOG
|
||||
cmd_exec apt update &>>$INSTALLLOG
|
||||
cmd_exec apt install -y dosemu &>>$INSTALLLOG
|
||||
#cmd_exec apt install -y install-otherdos &>>$INSTALLLOG
|
||||
|
||||
msg_ok "Installing DosEmu Dependencies for ${APP}"
|
||||
|
||||
|
@ -1,47 +1,47 @@
|
||||
if [ $BANUNBAN = "fail2ban" ]; then
|
||||
msg_info "Installing Fail2Ban Dependencies for ${APP}"
|
||||
apt install -y fail2ban &>/dev/null
|
||||
apt install -y iptables &>/dev/null
|
||||
apt install -y ipset &>/dev/null
|
||||
cmd_exec apt install -y fail2ban &>>$INSTALLLOG
|
||||
cmd_exec apt install -y iptables &>>$INSTALLLOG
|
||||
cmd_exec apt install -y ipset &>>$INSTALLLOG
|
||||
if [ -z "${FAIL2BAN_GROUP}" ]; then
|
||||
groupadd fail2ban &>/dev/null
|
||||
cmd_exec groupadd fail2ban &>>$INSTALLLOG
|
||||
fi
|
||||
usermod --append --groups fail2ban mystic &>/dev/null
|
||||
cmd_exec usermod --append --groups fail2ban mystic &>>$INSTALLLOG
|
||||
msg_ok "Installing Fail2Ban Dependencies for ${APP}"
|
||||
|
||||
msg_info "Installing Fail2Ban Scripts for ${APP}"
|
||||
pushd $MSTEMPDIR/mystic/fail2ban &>/dev/null
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" action.d/mysticbbs.conf > /etc/fail2ban/action.d/mysticbbs.conf
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" filter.d/mysticbbs.conf > /etc/fail2ban/filter.d/mysticbbs.conf
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" jail.d/mysticbbs.conf > /etc/fail2ban/jail.d/mysticbbs.conf
|
||||
mkdir -p /etc/systemd/system/fail2ban.service.d
|
||||
cp systemd/override.conf /etc/systemd/system/fail2ban.service.d/override.conf
|
||||
popd &>/dev/null
|
||||
cmd_exec pushd $MSTEMPDIR/mystic/fail2ban &>>$INSTALLLOG
|
||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" action.d/mysticbbs.conf > /etc/fail2ban/action.d/mysticbbs.conf
|
||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" filter.d/mysticbbs.conf > /etc/fail2ban/filter.d/mysticbbs.conf
|
||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" jail.d/mysticbbs.conf > /etc/fail2ban/jail.d/mysticbbs.conf
|
||||
cmd_exec mkdir -p /etc/systemd/system/fail2ban.service.d
|
||||
cmd_exec cp systemd/override.conf /etc/systemd/system/fail2ban.service.d/override.conf
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Installing Fail2Ban Scripts for ${APP}"
|
||||
fi
|
||||
|
||||
if [ $BANUNBAN = "ipban" ]; then
|
||||
msg_info "Installing IpBan Dependencies for ${APP}"
|
||||
pushd $MSTEMPDIR &>/dev/null
|
||||
wget -N https://github.com/DigitalRuby/IPBan/raw/master/IPBanCore/Linux/Scripts/Install.sh -O $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
apt install -y fail2ban &>/dev/null
|
||||
apt install -y iptables &>/dev/null
|
||||
apt install -y ipset &>/dev/null
|
||||
apt install -y xmlstarlet &>/dev/null
|
||||
sed -i '/yum/d' $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
sed -i '/systemctl/d' $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
sed -e 's!sudo !!g' -i $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
sed -e 's!-qq!-qqo!g' -i $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
sed -i '/nano/d' $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
bash $MSTEMPDIR/ipban-install.sh &>/dev/null
|
||||
cmd_exec pushd $MSTEMPDIR &>>$INSTALLLOG
|
||||
cmd_exec wget -N https://github.com/DigitalRuby/IPBan/raw/master/IPBanCore/Linux/Scripts/Install.sh -O $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
cmd_exec apt install -y fail2ban &>>$INSTALLLOG
|
||||
cmd_exec apt install -y iptables &>>$INSTALLLOG
|
||||
cmd_exec apt install -y ipset &>>$INSTALLLOG
|
||||
cmd_exec apt install -y xmlstarlet &>>$INSTALLLOG
|
||||
cmd_exec sed -i '/yum/d' $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
cmd_exec sed -i '/systemctl/d' $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
cmd_exec sed -e 's!sudo !!g' -i $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
cmd_exec sed -e 's!-qq!-qqo!g' -i $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
cmd_exec sed -i '/nano/d' $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
cmd_exec bash $MSTEMPDIR/ipban-install.sh &>>$INSTALLLOG
|
||||
if [ -z "${IPBAN_GROUP}" ]; then
|
||||
groupadd ipban &>/dev/null
|
||||
cmd_exec groupadd ipban &>>$INSTALLLOG
|
||||
fi
|
||||
usermod --append --groups ipban mystic &>/dev/null
|
||||
chown -R root:ipban /opt/ipban &>/dev/null
|
||||
chmod 775 /opt/ipban/ &>/dev/null
|
||||
dos2unix /opt/ipban/*.{config,xml,md} &>/dev/null
|
||||
popd &>/dev/null
|
||||
cmd_exec usermod --append --groups ipban mystic &>>$INSTALLLOG
|
||||
cmd_exec chown -R root:ipban /opt/ipban &>>$INSTALLLOG
|
||||
cmd_exec chmod 775 /opt/ipban/ &>>$INSTALLLOG
|
||||
cmd_exec dos2unix /opt/ipban/*.{config,xml,md} &>>$INSTALLLOG
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Installing IpBan Dependencies for ${APP}"
|
||||
|
||||
fi
|
||||
|
@ -1,14 +1,14 @@
|
||||
if [ $IP2L = "Yes" ]; then
|
||||
msg_info "Setting up IP2Location Download Client for ${APP}"
|
||||
apt install -y libwww-perl &>/dev/null
|
||||
wget -N https://www.ip2location.com/downloads/ip2location-downloader-linux.zip -O $MSTEMPDIR/ip2location-downloader-linux.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/ip2location-downloader-linux &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/ip2location-downloader-linux &>/dev/null
|
||||
pushd $MSTEMPDIR/ip2location-downloader-linux &>/dev/null
|
||||
unzip ../ip2location-downloader-linux.zip &>/dev/null
|
||||
cp download.pl ${MYSTIC_DIR}/ip2location
|
||||
chmod +x ${MYSTIC_DIR}/ip2location
|
||||
cp readme.txt ${MYSTIC_DIR}/docs/ip2location_README.txt
|
||||
popd &>/dev/null
|
||||
cmd_exec apt install -y libwww-perl &>>$INSTALLLOG
|
||||
cmd_exec wget -N https://www.ip2location.com/downloads/ip2location-downloader-linux.zip -O $MSTEMPDIR/ip2location-downloader-linux.zip &>>$INSTALLLOG
|
||||
cmd_exec rm -rf $MSTEMPDIR/ip2location-downloader-linux &>>$INSTALLLOG
|
||||
cmd_exec mkdir -p $MSTEMPDIR/ip2location-downloader-linux &>>$INSTALLLOG
|
||||
cmd_exec pushd $MSTEMPDIR/ip2location-downloader-linux &>>$INSTALLLOG
|
||||
cmd_exec unzip ../ip2location-downloader-linux.zip &>>$INSTALLLOG
|
||||
cmd_exec cp download.pl ${MYSTIC_DIR}/ip2location
|
||||
cmd_exec chmod +x ${MYSTIC_DIR}/ip2location
|
||||
cmd_exec cp readme.txt ${MYSTIC_DIR}/docs/ip2location_README.txt
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Setting up IP2Location Download Client for ${APP}"
|
||||
fi
|
||||
|
@ -2,29 +2,29 @@ MRC_VER="129a"
|
||||
|
||||
if [ $MRCCLIENT = "Yes" ]; then
|
||||
msg_info "Setting up Multi Relay Chat for ${APP}"
|
||||
apt install -y build-essential &>/dev/null
|
||||
wget -N https://www.phenomprod.com/releases/mystic/pn-mrc${MRC_VER}.zip -O $MSTEMPDIR/pn-mrc${MRC_VER}.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/pn-mrc${MRC_VER} &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/pn-mrc${MRC_VER} &>/dev/null
|
||||
pushd $MSTEMPDIR/pn-mrc${MRC_VER} &>/dev/null
|
||||
unzip ../pn-mrc${MRC_VER}.zip &>/dev/null
|
||||
cp mrc_${MRC_VER}/mrc_{client,config}.py ${MYSTIC_DIR}/
|
||||
cp mrc_${MRC_VER}/scripts/* ${MYSTIC_DIR}/themes/default/scripts/
|
||||
cp mrc_${MRC_VER}/text/* ${MYSTIC_DIR}/themes/default/text/
|
||||
cp installation.asc ${MYSTIC_DIR}/docs/mrc_installation.asc
|
||||
popd &>/dev/null
|
||||
mkdir -p ${MYSTIC_DIR}/data/mrc &>/dev/null
|
||||
cmd_exec apt install -y build-essential &>>$INSTALLLOG
|
||||
cmd_exec wget -N https://www.phenomprod.com/releases/mystic/pn-mrc${MRC_VER}.zip -O $MSTEMPDIR/pn-mrc${MRC_VER}.zip &>>$INSTALLLOG
|
||||
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 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"
|
||||
pushd $MSTEMPDIR/mystic/mrc-client &>/dev/null
|
||||
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
|
||||
popd &>/dev/null
|
||||
systemctl daemon-reload
|
||||
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
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
cmd_exec systemctl daemon-reload
|
||||
msg_ok "Installing Multi Relay Chat Systemd Start/Stop Scripts and Service File"
|
||||
|
||||
fi
|
||||
|
@ -2,29 +2,29 @@ MRC_SERVER_VER="v10"
|
||||
|
||||
if [ $MRCSERVER = "Yes" ]; then
|
||||
msg_info "Setting up Multi Relay Chat Server for ${APP}"
|
||||
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
|
||||
cp mrc_server.py ${MYSTIC_DIR}/
|
||||
cp sysop.doc ${MYSTIC_DIR}/docs/mrc_server_sysop.doc
|
||||
cp whatsnew.txt ${MYSTIC_DIR}/docs/mrc_server_whatsnew.txt
|
||||
cp servers.lst ${MYSTIC_DIR}/docs/mrc_server_server.lst
|
||||
popd &>/dev/null
|
||||
mkdir -p ${MYSTIC_DIR}/data/mrc &>/dev/null
|
||||
cmd_exec apt install -y build-essential &>>$INSTALLLOG
|
||||
cmd_exec wget -N https://sourceforge.net/projects/mystic-relay-chat/files/mrc_${MRC_SERVER_VER}.zip -O $MSTEMPDIR/mrc${MRC_SERVER_VER}.zip &>>$INSTALLLOG
|
||||
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 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"
|
||||
pushd $MSTEMPDIR/mystic/mrc-server &>/dev/null
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-start.sh > ${MYSTIC_DIR}/mrc_server-start
|
||||
chmod +x ${MYSTIC_DIR}/mrc_server-start
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mrc_server-stop.sh > ${MYSTIC_DIR}/mrc_server-stop
|
||||
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
|
||||
popd &>/dev/null
|
||||
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
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Installing Multi Relay Chat Server Systemd Start/Stop Scripts and Service File"
|
||||
|
||||
fi
|
||||
|
@ -70,6 +70,6 @@ source $MSTEMPDIR/mystic/mystic/mailin-${SCRIPT_VER}.sh
|
||||
source $MSTEMPDIR/mystic/mystic/importna-${SCRIPT_VER}.sh
|
||||
|
||||
msg_info "Correcting Linefeed for docs and Setting permissions"
|
||||
dos2unix ${MYSTIC_DIR}/docs/ &>/dev/null
|
||||
chown mystic:mystic -R ${MYSTIC_DIR} &>/dev/null
|
||||
cmd_exec dos2unix ${MYSTIC_DIR}/docs/ &>>$INSTALLLOG
|
||||
cmd_exec chown mystic:mystic -R ${MYSTIC_DIR} &>>$INSTALLLOG
|
||||
msg_ok "Correcting Linefeed for docs and Setting permissions"
|
||||
|
@ -1,4 +1,4 @@
|
||||
pushd ${MUTIL_DIR} &>/dev/null
|
||||
cmd_exec pushd ${MUTIL_DIR} &>>$INSTALLLOG
|
||||
|
||||
configfile="importna.ini"
|
||||
config=('Import_FIDONET.NA' 'Import_FILEBONE.NA')
|
||||
@ -16,4 +16,4 @@ do
|
||||
done
|
||||
msg_ok "Merging ${config} into ${configfile}"
|
||||
|
||||
popd &>/dev/null
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
|
@ -7,82 +7,82 @@ echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}"
|
||||
read -p "Press enter to continue"
|
||||
|
||||
msg_info "Starting ${APP} Installation"
|
||||
apt install -y python3 python2 &>/dev/null
|
||||
cmd_exec apt install -y python3 python2 &>>$INSTALLLOG
|
||||
|
||||
PYTHON3_VER=$(python3 $MSTEMPDIR/mystic/mystic/python_ver.py)
|
||||
PYTHON2_VER=$(python2 $MSTEMPDIR/mystic/mystic/python_ver.py)
|
||||
|
||||
apt install -y libpython${PYTHON3_VER} libpython${PYTHON2_VER} arj zip unrar dos2unix ${RARLAB} &>/dev/null
|
||||
wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
||||
rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||
pushd $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||
cmd_exec apt install -y libpython${PYTHON3_VER} libpython${PYTHON2_VER} arj zip unrar dos2unix ${RARLAB} &>>$INSTALLLOG
|
||||
cmd_exec wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>>$INSTALLLOG
|
||||
cmd_exec rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>>$INSTALLLOG
|
||||
cmd_exec mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>>$INSTALLLOG
|
||||
cmd_exec pushd $MSTEMPDIR/mystic-${MYSTIC_VER} &>>$INSTALLLOG
|
||||
if [ "${MYSTIC_EXT}" = "rar" ]; then
|
||||
unrar x $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
||||
cmd_exec unrar x $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>>$INSTALLLOG
|
||||
elif [ "${MYSTIC_EXT}" = "zip" ]; then
|
||||
unzip $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
||||
cmd_exec unzip $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>>$INSTALLLOG
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
chmod +x install &>/dev/null
|
||||
./install
|
||||
popd &>/dev/null
|
||||
cmd_exec chmod +x install &>>$INSTALLLOG
|
||||
cmd_exec ./install
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Finisched ${APP} Installation"
|
||||
|
||||
pushd ${MYSTIC_DIR} &>/dev/null
|
||||
apt install -y patch &>/dev/null
|
||||
patch -p0 -i $MSTEMPDIR/mystic/mystic/patches/mutil-ini-echounlink.patch &>/dev/null
|
||||
popd &>/dev/null
|
||||
cmd_exec pushd ${MYSTIC_DIR} &>>$INSTALLLOG
|
||||
cmd_exec apt install -y patch &>>$INSTALLLOG
|
||||
cmd_exec patch -p0 -i $MSTEMPDIR/mystic/mystic/patches/mutil-ini-echounlink.patch &>>$INSTALLLOG
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
|
||||
msg_info "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}"
|
||||
if [ -z "${GROUP}" ]; then
|
||||
groupadd mystic &>/dev/null
|
||||
cmd_exec groupadd mystic &>>$INSTALLLOG
|
||||
fi
|
||||
if [ -z "${USER}" ]; then
|
||||
useradd -m --home-dir ${MYSTIC_DIR} -g mystic mystic &>/dev/null
|
||||
cmd_exec useradd -m --home-dir ${MYSTIC_DIR} -g mystic mystic &>>$INSTALLLOG
|
||||
fi
|
||||
chown mystic:mystic -R ${MYSTIC_DIR} &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.txt' -type f -exec dos2unix {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.ini' -type f -exec dos2unix {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.txt' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.ini' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.dat' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.ans' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.asc' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.hlp' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.mnu' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.mnu' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.mps' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.mpx' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.mpy' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
find ${MYSTIC_DIR} -name '*.ms' -type f -exec chmod 0664 {} \; &>/dev/null
|
||||
cmd_exec chown mystic:mystic -R ${MYSTIC_DIR} &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.txt' -type f -exec dos2unix {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.ini' -type f -exec dos2unix {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.txt' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.ini' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.dat' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.ans' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.asc' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.hlp' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.mnu' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.mnu' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.mps' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.mpx' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.mpy' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
cmd_exec find ${MYSTIC_DIR} -name '*.ms' -type f -exec chmod 0664 {} \; &>>$INSTALLLOG
|
||||
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
|
||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
|
||||
cmd_exec chmod +x ${MYSTIC_DIR}/mis-start
|
||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
|
||||
cmd_exec chmod +x ${MYSTIC_DIR}/mis-stop
|
||||
cmd_exec sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
|
||||
cmd_exec sed -e "s!@MID@!${MID}!g" $MSTEMPDIR/mystic/mystic/mystic.conf.tmpfiles.d > /etc/tmpfiles.d/mystic.conf
|
||||
cmd_exec systemctl daemon-reload
|
||||
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||
|
||||
msg_info "Setting up ${APP} Official lha (be patient compiling lha)"
|
||||
apt install -y build-essential binutils make csh g++ sed gawk autoconf automake autotools-dev &>/dev/null
|
||||
wget -N https://github.com/jca02266/lha/archive/refs/tags/release-20211125.zip -O $MSTEMPDIR/lha-20211125.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/lha-release-20211125 &>/dev/null
|
||||
pushd $MSTEMPDIR &>/dev/null
|
||||
unzip lha-20211125.zip &>/dev/null
|
||||
popd &>/dev/null
|
||||
pushd $MSTEMPDIR/lha-release-20211125 &>/dev/null
|
||||
aclocal &>/dev/null
|
||||
autoheader &>/dev/null
|
||||
automake -a &>/dev/null
|
||||
autoconf &>/dev/null
|
||||
./configure &>/dev/null
|
||||
make &>/dev/null
|
||||
make install &>/dev/null
|
||||
popd &>/dev/null
|
||||
cmd_exec apt install -y build-essential binutils make csh g++ sed gawk autoconf automake autotools-dev &>>$INSTALLLOG
|
||||
cmd_exec wget -N https://github.com/jca02266/lha/archive/refs/tags/release-20211125.zip -O $MSTEMPDIR/lha-20211125.zip &>>$INSTALLLOG
|
||||
cmd_exec rm -rf $MSTEMPDIR/lha-release-20211125 &>>$INSTALLLOG
|
||||
cmd_exec pushd $MSTEMPDIR &>>$INSTALLLOG
|
||||
cmd_exec unzip lha-20211125.zip &>>$INSTALLLOG
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
cmd_exec pushd $MSTEMPDIR/lha-release-20211125 &>>$INSTALLLOG
|
||||
cmd_exec aclocal &>>$INSTALLLOG
|
||||
cmd_exec autoheader &>>$INSTALLLOG
|
||||
cmd_exec automake -a &>>$INSTALLLOG
|
||||
cmd_exec autoconf &>>$INSTALLLOG
|
||||
cmd_exec ./configure &>>$INSTALLLOG
|
||||
cmd_exec make &>>$INSTALLLOG
|
||||
cmd_exec make install &>>$INSTALLLOG
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Setting up ${APP} Official lha (be patient compiling lha)"
|
||||
|
@ -1,4 +1,4 @@
|
||||
pushd ${MUTIL_DIR} &>/dev/null
|
||||
cmd_exec pushd ${MUTIL_DIR} &>>$INSTALLLOG
|
||||
|
||||
configfile="mailin.ini"
|
||||
config=('ImportEchoMail' 'FileToss')
|
||||
@ -16,4 +16,4 @@ do
|
||||
done
|
||||
msg_ok "Merging ${config} into ${configfile}"
|
||||
|
||||
popd &>/dev/null
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
|
@ -1,4 +1,4 @@
|
||||
pushd ${MUTIL_DIR} &>/dev/null
|
||||
cmd_exec pushd ${MUTIL_DIR} &>>$INSTALLLOG
|
||||
|
||||
configfile="mailout.ini"
|
||||
config=('ExportEchoMail')
|
||||
@ -16,4 +16,4 @@ do
|
||||
done
|
||||
msg_ok "Merging ${config} into ${configfile}"
|
||||
|
||||
popd &>/dev/null
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
|
@ -1,4 +1,4 @@
|
||||
pushd ${MUTIL_DIR} &>/dev/null
|
||||
cmd_exec pushd ${MUTIL_DIR} &>>$INSTALLLOG
|
||||
|
||||
configfile="maint.ini"
|
||||
config=('PurgeMessageBases' 'PackMessageBases' 'MergeNodeLists' 'PackFileBases' 'LinkMessages' 'PurgeUserBase' 'PackUserBase' 'FileSort')
|
||||
@ -15,4 +15,5 @@ do
|
||||
sed -e "/$el/d" -i ${MYSTIC_DIR}/${configfile}
|
||||
done
|
||||
msg_ok "Merging ${config} into ${configfile}"
|
||||
popd &>/dev/null
|
||||
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
|
@ -1,16 +1,16 @@
|
||||
if [ $SPELL = "Yes" ]; then
|
||||
msg_info "Setting up Spellcheck for ${APP}"
|
||||
apt install -y libhunspell-dev &>/dev/null
|
||||
wget -N http://www.mysticbbs.com/downloads/mystic_spellcheck_v2.zip -O $MSTEMPDIR/mystic_spellcheck_v2.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/mystic_spellcheck_v2 &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/mystic_spellcheck_v2 &>/dev/null
|
||||
pushd $MSTEMPDIR/mystic_spellcheck_v2 &>/dev/null
|
||||
unzip ../mystic_spellcheck_v2.zip &>/dev/null
|
||||
cp dictionary.* ${MYSTIC_DIR}/data/
|
||||
cp wordlist.txt ${MYSTIC_DIR}/data/
|
||||
cp README.txt ${MYSTIC_DIR}/docs/Spellcheck_README.txt
|
||||
echo "; List secondary dicitinoaries in this File" > ${MYSTIC_DIR}/data/dictlist.txt
|
||||
echo "; more details in the Spellcheck_README.txt" >> ${MYSTIC_DIR}/data/dictlist.txt
|
||||
popd &>/dev/null
|
||||
cmd_exec apt install -y libhunspell-dev &>>$INSTALLLOG
|
||||
cmd_exec wget -N http://www.mysticbbs.com/downloads/mystic_spellcheck_v2.zip -O $MSTEMPDIR/mystic_spellcheck_v2.zip &>>$INSTALLLOG
|
||||
cmd_exec rm -rf $MSTEMPDIR/mystic_spellcheck_v2 &>>$INSTALLLOG
|
||||
cmd_exec mkdir -p $MSTEMPDIR/mystic_spellcheck_v2 &>>$INSTALLLOG
|
||||
cmd_exec pushd $MSTEMPDIR/mystic_spellcheck_v2 &>>$INSTALLLOG
|
||||
cmd_exec unzip ../mystic_spellcheck_v2.zip &>>$INSTALLLOG
|
||||
cmd_exec cp dictionary.* ${MYSTIC_DIR}/data/
|
||||
cmd_exec cp wordlist.txt ${MYSTIC_DIR}/data/
|
||||
cmd_exec cp README.txt ${MYSTIC_DIR}/docs/Spellcheck_README.txt
|
||||
cmd_exec echo "; List secondary dicitinoaries in this File" > ${MYSTIC_DIR}/data/dictlist.txt
|
||||
cmd_exec echo "; more details in the Spellcheck_README.txt" >> ${MYSTIC_DIR}/data/dictlist.txt
|
||||
cmd_exec popd &>>$INSTALLLOG
|
||||
msg_ok "Setting up Spellcheck for ${APP}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user