move 1st part to new install script

This commit is contained in:
Mario Fetka
2024-04-20 12:20:30 +02:00
parent 51334c1a87
commit 7c6563c691
5 changed files with 65 additions and 103 deletions

View File

@@ -0,0 +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
msg_ok "Setting up Spellcheck for ${APP}"
fi