mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Chat - Initial installation of chattervox protocol
This commit is contained in:
Executable
+42
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Author : Gaston Gonzalez
|
||||||
|
# Date : 4 December 2024
|
||||||
|
# Purpose : Install chattervox protocol
|
||||||
|
set -e
|
||||||
|
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||||
|
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
||||||
|
|
||||||
|
. ./env.sh
|
||||||
|
|
||||||
|
NAME=chattervox
|
||||||
|
VERSION=0.7.0
|
||||||
|
TARBALL=chattervox-linux-x64.tar.gz
|
||||||
|
INSTALL_DIR="/opt/${NAME}-${VERSION}"
|
||||||
|
LINK_PATH="/opt/${NAME}"
|
||||||
|
|
||||||
|
et-log "Installing ${NAME} ${VERSION}..."
|
||||||
|
|
||||||
|
URL=https://github.com/brannondorsey/chattervox/releases/download/v${VERSION}/chattervox-linux-x64.tar.gz
|
||||||
|
|
||||||
|
et-log "Downloading: ${URL}"
|
||||||
|
curl -s -L -o ${TARBALL} --fail ${URL}
|
||||||
|
|
||||||
|
CWD_DIR=`pwd`
|
||||||
|
|
||||||
|
tar -xzf ${TARBALL}
|
||||||
|
|
||||||
|
if [ -e chattervox-linux-x64 ]; then
|
||||||
|
mv chattervox-linux-x64 ${INSTALL_DIR}
|
||||||
|
mkdir -p ${INSTALL_DIR}/bin
|
||||||
|
mv ${INSTALL_DIR}/chattervox ${INSTALL_DIR}/bin/
|
||||||
|
mv ${INSTALL_DIR}/serialport.node ${INSTALL_DIR}/bin/
|
||||||
|
rm -v ${TARBALL}
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -e ${LINK_PATH} ] && rm ${LINK_PATH}
|
||||||
|
ln -s ${INSTALL_DIR} ${LINK_PATH}
|
||||||
|
|
||||||
|
stow -v -d /opt ${NAME} -t /usr/local
|
||||||
|
|
||||||
|
cd $CWD_DIR
|
||||||
+2
-1
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 16 March 2024
|
# Date : 16 March 2024
|
||||||
# Updated : 28 November 2024
|
# Updated : 4 December 2024
|
||||||
# Purpose : Main installer for EmComm Tools OS Community
|
# Purpose : Main installer for EmComm Tools OS Community
|
||||||
|
|
||||||
. ./env.sh
|
. ./env.sh
|
||||||
@@ -40,6 +40,7 @@ exitIfNotRoot
|
|||||||
./install-yaac.sh
|
./install-yaac.sh
|
||||||
./install-bbs-client.sh
|
./install-bbs-client.sh
|
||||||
./install-bbs-server.sh
|
./install-bbs-server.sh
|
||||||
|
./install-chattervox.sh
|
||||||
|
|
||||||
# Install modems
|
# Install modems
|
||||||
./install-ardop.sh
|
./install-ardop.sh
|
||||||
|
|||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Author : Gaston Gonzalez
|
||||||
|
# Date : 4 December 2024
|
||||||
|
# Purpose : Test chattervox installation
|
||||||
|
|
||||||
|
OUT=$(chattervox -v | grep "0.7.0")
|
||||||
|
exit $?
|
||||||
Reference in New Issue
Block a user