Add support for 'TEAM EDITION'.
This commit is contained in:
+75
-2
@@ -297,7 +297,44 @@ do
|
||||
echo -e "\n\t\033[33m\033[1mA Version number is required!\033[m\n"
|
||||
fi
|
||||
done
|
||||
DOWNLOAD_ARCHIVE="mattermost-${MATTERMOST_VERSION}-linux-amd64.tar.gz"
|
||||
echo ""
|
||||
echo -e "\033[32m--\033[m"
|
||||
echo ""
|
||||
echo "Choose Mattermost Edition"
|
||||
echo ""
|
||||
echo -e "\033[3G\033[37m\033[1m[1] Enterprise Ready\033[m"
|
||||
echo -e "\033[3G[2] Team Edition"
|
||||
echo ""
|
||||
echo "Type a number or press <RETURN> to choose highlighted value"
|
||||
echo ""
|
||||
echononl "Eingabe: "
|
||||
MATTERMOST_EDITION=
|
||||
while [[ "$MATTERMOST_EDITION" != "enterprise" ]] && [[ "$MATTERMOST_EDITION" != "team" ]]; do
|
||||
read OPTION
|
||||
case $OPTION in
|
||||
1)
|
||||
MATTERMOST_EDITION="enterprise"
|
||||
MATTERMOST_EDITION_NAME="Enterprise Ready"
|
||||
DOWNLOAD_ARCHIVE="mattermost-${MATTERMOST_VERSION}-linux-amd64.tar.gz"
|
||||
;;
|
||||
2)
|
||||
MATTERMOST_EDITION="team"
|
||||
MATTERMOST_EDITION_NAME="Team Edition"
|
||||
DOWNLOAD_ARCHIVE="mattermost-team-${MATTERMOST_VERSION}-linux-amd64.tar.gz"
|
||||
;;
|
||||
'')
|
||||
MATTERMOST_EDITION="enterprise"
|
||||
MATTERMOST_EDITION_NAME="Enterprise Ready"
|
||||
DOWNLOAD_ARCHIVE="mattermost-${MATTERMOST_VERSION}-linux-amd64.tar.gz"
|
||||
;;
|
||||
*)
|
||||
echo ""
|
||||
echo -e "\033[3GWrong entry! [ 1 = Enterprise Ready ; 2 = Team Edition ]"
|
||||
echo ""
|
||||
echononl "Eingabe: "
|
||||
;;
|
||||
esac
|
||||
done
|
||||
DOWNLOAD_URL="https://releases.mattermost.com/${MATTERMOST_VERSION}/${DOWNLOAD_ARCHIVE}"
|
||||
|
||||
|
||||
@@ -516,6 +553,7 @@ echo ""
|
||||
echo -e "\t\033[32mStart install script for Mattermost Server with the following parameters\033[m"
|
||||
echo ""
|
||||
echo -e "\tMattermost Server Version: \033[33m\033[1m$MATTERMOST_VERSION\033[m"
|
||||
echo -e "\tMattermost Edition.......: \033[33m\033[1m$MATTERMOST_EDITION_NAME\033[m"
|
||||
echo ""
|
||||
echo -e "\tFull qualified Hostname..: $FQHN_HOSTNAME"
|
||||
echo -e "\tHostname.................: $HOSTNAME"
|
||||
@@ -934,7 +972,7 @@ else
|
||||
fi
|
||||
|
||||
echononl "Download the latest version (${MATTERMOST_VERSION}) of the Mattermost Server.."
|
||||
if [[ ! -f "${working_dir}/mattermost-${MATTERMOST_VERSION}-linux-amd64.tar.gz" ]]; then
|
||||
if [[ ! -f "${working_dir}/${DOWNLOAD_ARCHIVE}" ]]; then
|
||||
wget -O "${working_dir}/${DOWNLOAD_ARCHIVE}" "${DOWNLOAD_URL}" > "$log_file" 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo_failed
|
||||
@@ -2081,6 +2119,41 @@ else
|
||||
echo_ok
|
||||
fi
|
||||
|
||||
# Install ffmpeg. Mattermost Agents uses ffmpeg for audio transcription.
|
||||
# This is independent of the selected Mattermost edition.
|
||||
#
|
||||
echononl "Install 'ffmpeg' (required for Agents audio transcription).."
|
||||
if dpkg -s ffmpeg > "$log_file" 2>&1 ; then
|
||||
echo_skipped
|
||||
else
|
||||
apt-get install -y ffmpeg > "$log_file" 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo_failed
|
||||
error "$(cat "$log_file")"
|
||||
else
|
||||
echo_ok
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Install poppler-utils. Mattermost Agents can use Poppler tools for
|
||||
# extracting text and metadata from PDF documents. This is independent
|
||||
# of the selected Mattermost edition.
|
||||
#
|
||||
echononl "Install 'poppler-utils' (PDF processing support).."
|
||||
if dpkg -s poppler-utils > "$log_file" 2>&1 ; then
|
||||
echo_skipped
|
||||
else
|
||||
apt-get install -y poppler-utils > "$log_file" 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo_failed
|
||||
error "$(cat "$log_file")"
|
||||
else
|
||||
echo_ok
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Ensure support is available for apt repositories served via HTTPS
|
||||
#
|
||||
echononl "Install 'apt-transport-https'.."
|
||||
|
||||
Reference in New Issue
Block a user