et-bbs-server - Added web interface for Linbpq to installer

This commit is contained in:
Gaston Gonzalez
2025-03-26 06:35:00 -07:00
parent f839cdeb1d
commit 6b3744fa2e
+32 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Author : Gaston Gonzalez # Author : Gaston Gonzalez
# Date : 8 November 2024 # Date : 8 November 2024
# Updated : 28 November 2024 # Updated : 26 March 2025
# Purpose : Install Linbpq # Purpose : Install Linbpq
# #
# Notes: # Notes:
@@ -19,6 +19,36 @@ apt install ucspi-tcp -y
et-log "Installing Linbpq..." et-log "Installing Linbpq..."
# Install the web interface for LinBPQ
HTML_ZIP_FILE=HTMLPages.zip
HTML_ZIP_URL="http://www.cantab.net/users/john.wiseman/Downloads/Beta/${HTML_ZIP_FILE}"
curl -s -f -L -o ${HTML_ZIP_FILE} ${HTML_ZIP_URL}
if [[ $? -eq 0 ]]; then
et-log "Downloading web interface for LinBPQ from ${HTML_ZIP_URL}"
CWD_DIR=$(pwd)
et-log "Installing web interface under ${BBS_HOME}"
BBS_HOME="/etc/skel/.local/share/emcomm-tools/bbs-server"
BBS_HOME_FILES="${BBS_HOME}/Files"
[[ ! -e ${BBS_HOME_FILES} ]] && mkdir -p ${BBS_HOME_FILES}
mv ${HTML_ZIP_FILE} ${BBS_HOME} && cd ${BBS_HOME} && unzip ${HTML_ZIP_FILE}
cd ${CWD_DIR}
if [[ -e "${BBS_HOME}/index.htmlx" ]]; then
et-log "Web interface installation successful"
else
et-log "Web interface installation failed"
fi
else
et-log "Unable install web interface for LinBPQ"
fi
# Install Linbpq
et-log "Installing 32-bit dependencies for Linbpq..." et-log "Installing 32-bit dependencies for Linbpq..."
dpkg --add-architecture i386 && apt update && apt install \ dpkg --add-architecture i386 && apt update && apt install \
libpcap0.8-dev:i386 \ libpcap0.8-dev:i386 \
@@ -45,3 +75,4 @@ ln -s ${INSTALL_DIR} ${LINK_PATH}
stow -v -d /opt linbpq -t /usr/local stow -v -d /opt linbpq -t /usr/local
cd ${CWD_DIR} cd ${CWD_DIR}