1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

remove scripting for obsolete spell checking plugin in kopano webapp (#439)

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2020-09-07 08:55:46 +02:00 committed by GitHub
parent 1d80122e51
commit 5f3ee5ef56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,24 +217,6 @@ if [ ! -e ./.env ]; then
ADDITIONAL_KOPANO_WEBAPP_PLUGINS="" ADDITIONAL_KOPANO_WEBAPP_PLUGINS=""
prompt="Check language spell support (again to uncheck, ENTER when done): "
while lang_menu && read -rp "$prompt" num && [[ "$num" ]]; do
# shellcheck disable=SC2015
[[ "$num" != *[![:digit:]]* ]] &&
(( num > 0 && num <= ${#LANG_OPTIONS[@]} )) ||
{ msg="Invalid option: $num"; continue; }
((num--)); msg="${LANG_OPTIONS[num]} was ${lang_choices[num]:+un}checked"
[[ "${lang_choices[num]}" ]] && lang_choices[num]="" || lang_choices[num]="+"
done
KOPANO_SPELL_PLUGIN=""
KOPANO_SPELL_LANG_PLUGIN=""
for i in "${!LANG_OPTIONS[@]}"; do
[[ "${lang_choices[i]}" ]] && { KOPANO_SPELL_LANG_PLUGIN="${KOPANO_SPELL_LANG_PLUGIN} kopano-webapp-plugin-spell-${LANG_OPTIONS[i]}"; KOPANO_SPELL_PLUGIN="kopano-webapp-plugin-spell"; }
done
ADDITIONAL_KOPANO_WEBAPP_PLUGINS="${KOPANO_SPELL_PLUGIN}${KOPANO_SPELL_LANG_PLUGIN}"
prompt="Check for additional plugins (again to uncheck, ENTER when done): " prompt="Check for additional plugins (again to uncheck, ENTER when done): "
while plugin_menu && read -rp "$prompt" num && [[ "$num" ]]; do while plugin_menu && read -rp "$prompt" num && [[ "$num" ]]; do
# shellcheck disable=SC2015 # shellcheck disable=SC2015