Release new script

This commit is contained in:
Mario Fetka 2024-05-16 18:33:06 +02:00
parent 0452a021c2
commit 17199a5a30
54 changed files with 112 additions and 65 deletions

8
cryptlib/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

8
dbp/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

View File

@ -1,8 +0,0 @@
if [ $DOSEMU = "Yes" ]; then
echo "" >> ${DBP_INFO}
echo "DosEmu2 Integration with Mystic" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "For the correct DosEmu2 integration follow the Mystic Doors doc ${MYSTIC_DIR}/docs/unix.install.txt" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "==============================================================================================================" >> ${DBP_INFO}
fi

21
dosemu2/info-v7.sh Normal file
View File

@ -0,0 +1,21 @@
if [ "${DOSEMU}" = "Yes" ]; then
if [ "${DOSEMUVER}" = "dosemu2" ]; then
echo "" >> ${DBP_INFO}
echo "DosEmu2 Integration with Mystic" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "For the correct DosEmu2 integration follow the Mystic Doors doc ${MYSTIC_DIR}/docs/unix.install.txt" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "==============================================================================================================" >> ${DBP_INFO}
fi
if [ "${DOSEMUVER}" = "dosemu" ]; then
echo "" >> ${DBP_INFO}
echo "DosEmu Integration with Mystic" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "For the correct DosEmu integration follow the Mystic Doors doc ${MYSTIC_DIR}/docs/unix.install.txt" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "==============================================================================================================" >> ${DBP_INFO}
fi
fi

View File

@ -1,12 +0,0 @@
if [ $DOSEMU = "Yes" ]; 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
msg_ok "Installing DosEmu2 Dependencies for ${APP}"
fi

28
dosemu2/install-v7.sh Normal file
View File

@ -0,0 +1,28 @@
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
msg_ok "Installing DosEmu2 Dependencies for ${APP}"
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
msg_ok "Installing DosEmu Dependencies for ${APP}"
fi
fi

View File

@ -1,8 +0,0 @@
DOSEMU=$(whiptail --title "Add DosEmu2 to Mystic" --radiolist --cancel-button Exit-Script "Choose Yes No" 8 58 2 \
"Yes" "Add DosEmu2 Script" ON \
"No" "Don't add DosEmu2 Script" OFF \
3>&1 1>&2 2>&3)
exitstatus=$?
if [ $exitstatus = 0 ]; then
echo -e "${DGN}Add DbP Script: ${BGN}$DOSEMU${CL}"
fi

8
dosemu2/prompt-v7.sh Normal file
View File

@ -0,0 +1,8 @@
DOSEMU=$(whiptail --title "Add DosEmu2/DosEmu to Mystic" --radiolist --cancel-button Exit-Script "Choose Yes No" 8 58 2 \
"Yes" "Add DosEmu2/DosEmu Support" ON \
"No" "Don't add DosEmu2/DosEmu Support" OFF \
3>&1 1>&2 2>&3)
exitstatus=$?
if [ $exitstatus = 0 ]; then
echo -e "${DGN}Add DosEmu2/DosEmu Support: ${BGN}$DOSEMU${CL}"
fi

8
dosemu2/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

8
fail2ban/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

View File

@ -13,7 +13,7 @@ APP="Mystic BBS"
MSDIR="/opt/mystic"
MSTEMPDIR="/usr/local/src/mystic"
TMP_DIR=$(mktemp -d)
SCRIPT_VER="v6"
SCRIPT_VER="v7"
GROUP=$(getent group mystic)
USER=$(getent shadow mystic)

View File

@ -13,7 +13,7 @@ APP="Mystic BBS"
MSDIR="/opt/mystic"
MSTEMPDIR="/usr/local/src/mystic"
TMP_DIR=$(mktemp -d)
SCRIPT_VER="v5"
SCRIPT_VER="v6"
GROUP=$(getent group mystic)
USER=$(getent shadow mystic)
@ -83,25 +83,25 @@ if [ "${ARCH}" = "x86_64-linux-gnu" ]; then
MYSTIC_ARCH="l64"
MYSTIC_EXT="rar"
RARLAB="rar"
DOSEMU="yes"
DOSEMUVER="dosemu2"
elif [ "${ARCH}" = "i386-linux-gnu" ]; then
INIMOD_ARCH="amd32"
MYSTIC_ARCH="l32"
MYSTIC_EXT="rar"
RARLAB="rar"
DOSEMU="no"
DOSEMUVER="dosemu"
elif [ "${ARCH}" = "aarch64-linux-gnu" ]; then
INIMOD_ARCH="arm64"
MYSTIC_ARCH="p64"
MYSTIC_EXT="zip"
RARLAB=""
DOSEMU="yes"
DOSEMUVER="dosemu2"
elif [ "${ARCH}" = "arm-linux-gnueabihf" ]; then
INIMOD_ARCH="arm32"
MYSTIC_ARCH="p32"
MYSTIC_EXT="zip"
RARLAB=""
DOSEMU="no"
DOSEMUVER=""
else
echo "Architecture not supported: ${ARCH}"
exit 1
@ -172,7 +172,7 @@ source $MSTEMPDIR/mystic/dbp/prompt-${SCRIPT_VER}.sh
# Add Fail2ban | banip
source $MSTEMPDIR/mystic/fail2ban/prompt-${SCRIPT_VER}.sh
# Add Dosemu2
if [ "$DOSEMU" = "yes" ]; then
if [ -n "${DOSEMUVER}" ]; then
source $MSTEMPDIR/mystic/dosemu2/prompt-${SCRIPT_VER}.sh
fi
@ -195,7 +195,7 @@ source $MSTEMPDIR/mystic/dbp/install-${SCRIPT_VER}.sh
# Add Fail2ban | banip
source $MSTEMPDIR/mystic/fail2ban/install-${SCRIPT_VER}.sh
# Add Dosemu2
if [ "$DOSEMU" = "yes" ]; then
if [ -n "${DOSEMUVER}" ]; then
source $MSTEMPDIR/mystic/dosemu2/install-${SCRIPT_VER}.sh
fi
@ -218,7 +218,7 @@ source $MSTEMPDIR/mystic/dbp/config-${SCRIPT_VER}.sh
# Add Fail2ban | banip
source $MSTEMPDIR/mystic/fail2ban/config-${SCRIPT_VER}.sh
# Add Dosemu2
if [ "$DOSEMU" = "yes" ]; then
if [ -n "${DOSEMUVER}" ]; then
source $MSTEMPDIR/mystic/dosemu2/config-${SCRIPT_VER}.sh
fi
@ -250,7 +250,7 @@ source $MSTEMPDIR/mystic/dbp/info-${SCRIPT_VER}.sh
# Add Fail2ban | banip
source $MSTEMPDIR/mystic/fail2ban/info-${SCRIPT_VER}.sh
# Add Dosemu2
if [ "$DOSEMU" = "yes" ]; then
if [ -n "${DOSEMUVER}" ]; then
source $MSTEMPDIR/mystic/dosemu2/info-${SCRIPT_VER}.sh
fi

8
ip2location/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

8
mrc-client/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

8
mrc-server/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

8
mystic/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh

8
spellcheck/update.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done
for file in $(ls *-v6.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v6\.sh/v7\.sh/')"
done
git rm *-v5.sh