From 0d7c3da24e45b460f96856e98d950cd7472b3007 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 21 Apr 2024 11:35:52 +0200 Subject: [PATCH] Prepare v0.3 and make 0.2 stable --- FILE_ID.DIZ | 2 +- cryptlib/{config-v1.sh => config-v3.sh} | 0 cryptlib/{info-v1.sh => info-v3.sh} | 0 cryptlib/{install-v1.sh => install-v3.sh} | 0 cryptlib/{prompt-v1.sh => prompt-v3.sh} | 0 cryptlib/update.sh | 4 ++-- dbp/{config-v1.sh => config-v3.sh} | 0 dbp/{info-v1.sh => info-v3.sh} | 0 dbp/{install-v1.sh => install-v3.sh} | 0 dbp/{prompt-v1.sh => prompt-v3.sh} | 0 dbp/update.sh | 4 ++-- dosemu2/{config-v1.sh => config-v3.sh} | 0 dosemu2/{info-v1.sh => info-v3.sh} | 0 dosemu2/{install-v1.sh => install-v3.sh} | 0 dosemu2/{prompt-v1.sh => prompt-v3.sh} | 0 dosemu2/update.sh | 4 ++-- fail2ban/{config-v1.sh => config-v3.sh} | 0 fail2ban/{info-v1.sh => info-v3.sh} | 0 fail2ban/{install-v1.sh => install-v3.sh} | 0 fail2ban/{prompt-v1.sh => prompt-v3.sh} | 0 fail2ban/update.sh | 4 ++-- install-next.sh | 2 +- install.sh | 4 ++-- ip2location/{config-v1.sh => config-v3.sh} | 0 ip2location/{info-v1.sh => info-v3.sh} | 0 ip2location/{install-v1.sh => install-v3.sh} | 0 ip2location/{prompt-v1.sh => prompt-v3.sh} | 0 ip2location/update.sh | 4 ++-- mrc-client/{config-v1.sh => config-v3.sh} | 0 mrc-client/{info-v1.sh => info-v3.sh} | 0 mrc-client/{install-v1.sh => install-v3.sh} | 0 mrc-client/{prompt-v1.sh => prompt-v3.sh} | 0 mrc-client/update.sh | 4 ++-- mrc-server/{config-v1.sh => config-v3.sh} | 0 mrc-server/{info-v1.sh => info-v3.sh} | 0 mrc-server/{install-v1.sh => install-v3.sh} | 0 mrc-server/{prompt-v1.sh => prompt-v3.sh} | 0 mrc-server/update.sh | 4 ++-- mystic/{config-v1.sh => config-v3.sh} | 0 mystic/{importna-v1.sh => importna-v3.sh} | 0 mystic/{info-v1.sh => info-v3.sh} | 4 ++-- mystic/{install-v1.sh => install-v3.sh} | 25 +++++++++++++++++--- mystic/{mailin-v1.sh => mailin-v3.sh} | 0 mystic/{mailout-v1.sh => mailout-v3.sh} | 0 mystic/{maint-v1.sh => maint-v3.sh} | 0 mystic/{prompt-v1.sh => prompt-v3.sh} | 0 mystic/update.sh | 4 ++-- spellcheck/{config-v1.sh => config-v3.sh} | 0 spellcheck/{info-v1.sh => info-v3.sh} | 0 spellcheck/{install-v1.sh => install-v3.sh} | 0 spellcheck/{prompt-v1.sh => prompt-v3.sh} | 0 spellcheck/update.sh | 4 ++-- 52 files changed, 46 insertions(+), 27 deletions(-) rename cryptlib/{config-v1.sh => config-v3.sh} (100%) rename cryptlib/{info-v1.sh => info-v3.sh} (100%) rename cryptlib/{install-v1.sh => install-v3.sh} (100%) rename cryptlib/{prompt-v1.sh => prompt-v3.sh} (100%) rename dbp/{config-v1.sh => config-v3.sh} (100%) rename dbp/{info-v1.sh => info-v3.sh} (100%) rename dbp/{install-v1.sh => install-v3.sh} (100%) rename dbp/{prompt-v1.sh => prompt-v3.sh} (100%) rename dosemu2/{config-v1.sh => config-v3.sh} (100%) rename dosemu2/{info-v1.sh => info-v3.sh} (100%) rename dosemu2/{install-v1.sh => install-v3.sh} (100%) rename dosemu2/{prompt-v1.sh => prompt-v3.sh} (100%) rename fail2ban/{config-v1.sh => config-v3.sh} (100%) rename fail2ban/{info-v1.sh => info-v3.sh} (100%) rename fail2ban/{install-v1.sh => install-v3.sh} (100%) rename fail2ban/{prompt-v1.sh => prompt-v3.sh} (100%) rename ip2location/{config-v1.sh => config-v3.sh} (100%) rename ip2location/{info-v1.sh => info-v3.sh} (100%) rename ip2location/{install-v1.sh => install-v3.sh} (100%) rename ip2location/{prompt-v1.sh => prompt-v3.sh} (100%) rename mrc-client/{config-v1.sh => config-v3.sh} (100%) rename mrc-client/{info-v1.sh => info-v3.sh} (100%) rename mrc-client/{install-v1.sh => install-v3.sh} (100%) rename mrc-client/{prompt-v1.sh => prompt-v3.sh} (100%) rename mrc-server/{config-v1.sh => config-v3.sh} (100%) rename mrc-server/{info-v1.sh => info-v3.sh} (100%) rename mrc-server/{install-v1.sh => install-v3.sh} (100%) rename mrc-server/{prompt-v1.sh => prompt-v3.sh} (100%) rename mystic/{config-v1.sh => config-v3.sh} (100%) rename mystic/{importna-v1.sh => importna-v3.sh} (100%) rename mystic/{info-v1.sh => info-v3.sh} (75%) rename mystic/{install-v1.sh => install-v3.sh} (73%) rename mystic/{mailin-v1.sh => mailin-v3.sh} (100%) rename mystic/{mailout-v1.sh => mailout-v3.sh} (100%) rename mystic/{maint-v1.sh => maint-v3.sh} (100%) rename mystic/{prompt-v1.sh => prompt-v3.sh} (100%) rename spellcheck/{config-v1.sh => config-v3.sh} (100%) rename spellcheck/{info-v1.sh => info-v3.sh} (100%) rename spellcheck/{install-v1.sh => install-v3.sh} (100%) rename spellcheck/{prompt-v1.sh => prompt-v3.sh} (100%) diff --git a/FILE_ID.DIZ b/FILE_ID.DIZ index 4fe9414..5484d02 100644 --- a/FILE_ID.DIZ +++ b/FILE_ID.DIZ @@ -1,4 +1,4 @@ -DBP MYSTIC INSTALLER SCRIPT v0.1 +DBP MYSTIC INSTALLER SCRIPT v0.2 This Script will help you install the Mystic BBS System on Debian Linux. It also Compiles Cryptlib, Adds Fail2ban, Logmanagent, Multi diff --git a/cryptlib/config-v1.sh b/cryptlib/config-v3.sh similarity index 100% rename from cryptlib/config-v1.sh rename to cryptlib/config-v3.sh diff --git a/cryptlib/info-v1.sh b/cryptlib/info-v3.sh similarity index 100% rename from cryptlib/info-v1.sh rename to cryptlib/info-v3.sh diff --git a/cryptlib/install-v1.sh b/cryptlib/install-v3.sh similarity index 100% rename from cryptlib/install-v1.sh rename to cryptlib/install-v3.sh diff --git a/cryptlib/prompt-v1.sh b/cryptlib/prompt-v3.sh similarity index 100% rename from cryptlib/prompt-v1.sh rename to cryptlib/prompt-v3.sh diff --git a/cryptlib/update.sh b/cryptlib/update.sh index 2b5d25e..b538915 100644 --- a/cryptlib/update.sh +++ b/cryptlib/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/dbp/config-v1.sh b/dbp/config-v3.sh similarity index 100% rename from dbp/config-v1.sh rename to dbp/config-v3.sh diff --git a/dbp/info-v1.sh b/dbp/info-v3.sh similarity index 100% rename from dbp/info-v1.sh rename to dbp/info-v3.sh diff --git a/dbp/install-v1.sh b/dbp/install-v3.sh similarity index 100% rename from dbp/install-v1.sh rename to dbp/install-v3.sh diff --git a/dbp/prompt-v1.sh b/dbp/prompt-v3.sh similarity index 100% rename from dbp/prompt-v1.sh rename to dbp/prompt-v3.sh diff --git a/dbp/update.sh b/dbp/update.sh index 2b5d25e..b538915 100644 --- a/dbp/update.sh +++ b/dbp/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/dosemu2/config-v1.sh b/dosemu2/config-v3.sh similarity index 100% rename from dosemu2/config-v1.sh rename to dosemu2/config-v3.sh diff --git a/dosemu2/info-v1.sh b/dosemu2/info-v3.sh similarity index 100% rename from dosemu2/info-v1.sh rename to dosemu2/info-v3.sh diff --git a/dosemu2/install-v1.sh b/dosemu2/install-v3.sh similarity index 100% rename from dosemu2/install-v1.sh rename to dosemu2/install-v3.sh diff --git a/dosemu2/prompt-v1.sh b/dosemu2/prompt-v3.sh similarity index 100% rename from dosemu2/prompt-v1.sh rename to dosemu2/prompt-v3.sh diff --git a/dosemu2/update.sh b/dosemu2/update.sh index 2b5d25e..b538915 100644 --- a/dosemu2/update.sh +++ b/dosemu2/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/fail2ban/config-v1.sh b/fail2ban/config-v3.sh similarity index 100% rename from fail2ban/config-v1.sh rename to fail2ban/config-v3.sh diff --git a/fail2ban/info-v1.sh b/fail2ban/info-v3.sh similarity index 100% rename from fail2ban/info-v1.sh rename to fail2ban/info-v3.sh diff --git a/fail2ban/install-v1.sh b/fail2ban/install-v3.sh similarity index 100% rename from fail2ban/install-v1.sh rename to fail2ban/install-v3.sh diff --git a/fail2ban/prompt-v1.sh b/fail2ban/prompt-v3.sh similarity index 100% rename from fail2ban/prompt-v1.sh rename to fail2ban/prompt-v3.sh diff --git a/fail2ban/update.sh b/fail2ban/update.sh index 2b5d25e..b538915 100644 --- a/fail2ban/update.sh +++ b/fail2ban/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/install-next.sh b/install-next.sh index 9c47afe..4c84a2e 100644 --- a/install-next.sh +++ b/install-next.sh @@ -13,7 +13,7 @@ APP="Mystic BBS" MSDIR="/opt/mystic" MSTEMPDIR="/usr/local/src/mystic" TMP_DIR=$(mktemp -d) -SCRIPT_VER="v2" +SCRIPT_VER="v3" GROUP=$(getent group mystic) USER=$(getent shadow mystic) diff --git a/install.sh b/install.sh index 27ab4da..9c47afe 100644 --- a/install.sh +++ b/install.sh @@ -13,7 +13,7 @@ APP="Mystic BBS" MSDIR="/opt/mystic" MSTEMPDIR="/usr/local/src/mystic" TMP_DIR=$(mktemp -d) -SCRIPT_VER="v1" +SCRIPT_VER="v2" GROUP=$(getent group mystic) USER=$(getent shadow mystic) @@ -248,4 +248,4 @@ source $MSTEMPDIR/mystic/dosemu2/info-${SCRIPT_VER}.sh chown mystic:mystic -R ${MYSTIC_DIR} &>/dev/null cat ${DBP_INFO} -echo "The Infos abouth has been put into ${DBP_INFO}" +echo "These Infos are also been put into ${DBP_INFO}" diff --git a/ip2location/config-v1.sh b/ip2location/config-v3.sh similarity index 100% rename from ip2location/config-v1.sh rename to ip2location/config-v3.sh diff --git a/ip2location/info-v1.sh b/ip2location/info-v3.sh similarity index 100% rename from ip2location/info-v1.sh rename to ip2location/info-v3.sh diff --git a/ip2location/install-v1.sh b/ip2location/install-v3.sh similarity index 100% rename from ip2location/install-v1.sh rename to ip2location/install-v3.sh diff --git a/ip2location/prompt-v1.sh b/ip2location/prompt-v3.sh similarity index 100% rename from ip2location/prompt-v1.sh rename to ip2location/prompt-v3.sh diff --git a/ip2location/update.sh b/ip2location/update.sh index 2b5d25e..b538915 100644 --- a/ip2location/update.sh +++ b/ip2location/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/mrc-client/config-v1.sh b/mrc-client/config-v3.sh similarity index 100% rename from mrc-client/config-v1.sh rename to mrc-client/config-v3.sh diff --git a/mrc-client/info-v1.sh b/mrc-client/info-v3.sh similarity index 100% rename from mrc-client/info-v1.sh rename to mrc-client/info-v3.sh diff --git a/mrc-client/install-v1.sh b/mrc-client/install-v3.sh similarity index 100% rename from mrc-client/install-v1.sh rename to mrc-client/install-v3.sh diff --git a/mrc-client/prompt-v1.sh b/mrc-client/prompt-v3.sh similarity index 100% rename from mrc-client/prompt-v1.sh rename to mrc-client/prompt-v3.sh diff --git a/mrc-client/update.sh b/mrc-client/update.sh index 2b5d25e..b538915 100644 --- a/mrc-client/update.sh +++ b/mrc-client/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/mrc-server/config-v1.sh b/mrc-server/config-v3.sh similarity index 100% rename from mrc-server/config-v1.sh rename to mrc-server/config-v3.sh diff --git a/mrc-server/info-v1.sh b/mrc-server/info-v3.sh similarity index 100% rename from mrc-server/info-v1.sh rename to mrc-server/info-v3.sh diff --git a/mrc-server/install-v1.sh b/mrc-server/install-v3.sh similarity index 100% rename from mrc-server/install-v1.sh rename to mrc-server/install-v3.sh diff --git a/mrc-server/prompt-v1.sh b/mrc-server/prompt-v3.sh similarity index 100% rename from mrc-server/prompt-v1.sh rename to mrc-server/prompt-v3.sh diff --git a/mrc-server/update.sh b/mrc-server/update.sh index 2b5d25e..b538915 100644 --- a/mrc-server/update.sh +++ b/mrc-server/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/mystic/config-v1.sh b/mystic/config-v3.sh similarity index 100% rename from mystic/config-v1.sh rename to mystic/config-v3.sh diff --git a/mystic/importna-v1.sh b/mystic/importna-v3.sh similarity index 100% rename from mystic/importna-v1.sh rename to mystic/importna-v3.sh diff --git a/mystic/info-v1.sh b/mystic/info-v3.sh similarity index 75% rename from mystic/info-v1.sh rename to mystic/info-v3.sh index 40fd011..08a9e87 100644 --- a/mystic/info-v1.sh +++ b/mystic/info-v3.sh @@ -1,5 +1,5 @@ -PYTHON2=$(ls /usr/lib/x86_64-linux-gnu/libpython2*.so.1) -PYTHON3=$(ls /usr/lib/x86_64-linux-gnu/libpython3*.so.1) +PYTHON2=`ls ${LIBDIR}/libpython2*.so.1` +PYTHON3=`ls ${LIBDIR}/libpython3*.so.1` echo "" >> ${DBP_INFO} echo "Settings in Mystic General Settings" >> ${DBP_INFO} diff --git a/mystic/install-v1.sh b/mystic/install-v3.sh similarity index 73% rename from mystic/install-v1.sh rename to mystic/install-v3.sh index cc92362..eb69dc0 100644 --- a/mystic/install-v1.sh +++ b/mystic/install-v3.sh @@ -1,12 +1,14 @@ -MYSTIC_VER="112a48" +#UPSTREAM="downloads" +UPSTREAM="downloads/prealpha" +MYSTIC_VER="112a49" echo -e "Plz set the install dir the same as bevor" echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}" read -p "Press enter to continue" msg_info "Starting ${APP} Installation" -apt install -y unrar-free python3 python2 libpython2.7 zip rar &>/dev/null -wget -N http://www.mysticbbs.com/downloads/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null +apt install -y python3 python2 libpython2.7 arj zip rar unrar &>/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 @@ -60,3 +62,20 @@ sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > / 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 +msg_ok "Setting up ${APP} Official lha (be patient compiling lha)" diff --git a/mystic/mailin-v1.sh b/mystic/mailin-v3.sh similarity index 100% rename from mystic/mailin-v1.sh rename to mystic/mailin-v3.sh diff --git a/mystic/mailout-v1.sh b/mystic/mailout-v3.sh similarity index 100% rename from mystic/mailout-v1.sh rename to mystic/mailout-v3.sh diff --git a/mystic/maint-v1.sh b/mystic/maint-v3.sh similarity index 100% rename from mystic/maint-v1.sh rename to mystic/maint-v3.sh diff --git a/mystic/prompt-v1.sh b/mystic/prompt-v3.sh similarity index 100% rename from mystic/prompt-v1.sh rename to mystic/prompt-v3.sh diff --git a/mystic/update.sh b/mystic/update.sh index 2b5d25e..b538915 100644 --- a/mystic/update.sh +++ b/mystic/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file diff --git a/spellcheck/config-v1.sh b/spellcheck/config-v3.sh similarity index 100% rename from spellcheck/config-v1.sh rename to spellcheck/config-v3.sh diff --git a/spellcheck/info-v1.sh b/spellcheck/info-v3.sh similarity index 100% rename from spellcheck/info-v1.sh rename to spellcheck/info-v3.sh diff --git a/spellcheck/install-v1.sh b/spellcheck/install-v3.sh similarity index 100% rename from spellcheck/install-v1.sh rename to spellcheck/install-v3.sh diff --git a/spellcheck/prompt-v1.sh b/spellcheck/prompt-v3.sh similarity index 100% rename from spellcheck/prompt-v1.sh rename to spellcheck/prompt-v3.sh diff --git a/spellcheck/update.sh b/spellcheck/update.sh index 2b5d25e..b538915 100644 --- a/spellcheck/update.sh +++ b/spellcheck/update.sh @@ -1,3 +1,3 @@ -for file in $(ls *-v1.sh) ; do - cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')" +for file in $(ls *-v2.sh) ; do + cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')" done \ No newline at end of file