mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update 51-elasticsearch
This commit is contained in:
@@ -1,8 +1,19 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
# shellcheck source=lib.sh
|
############
|
||||||
touch /var/scripts/fetch_lib.sh
|
# BASED ON #
|
||||||
source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
|
############
|
||||||
|
# https://raw.githubusercontent.com/nextcloud/vm/master/apps/fulltextsearch.sh
|
||||||
|
# T&M Hansson IT AB © - 2021, https://www.hanssonit.se/
|
||||||
|
# SwITNet Ltd © - 2021, https://switnet.net/
|
||||||
|
|
||||||
|
# Download the script
|
||||||
|
source /sbin/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
|
||||||
|
|
||||||
|
# Correct the script
|
||||||
|
sed -i "s|SCRIPTS=/var/scripts|SCRIPTS=/sbin|g" /sbin/fetch_lib.sh
|
||||||
|
sed -i "s|NCPATH=/var/www/nextcloud|/data/config/www/nextcloud|g" /sbin/fetch_lib.sh
|
||||||
|
sed -i "s|BACKUP=/mnt/NCBACKUP|BACKUP=/data/NCBACKUP|g" /sbin/fetch_lib.sh
|
||||||
|
|
||||||
# Get all needed variables from the library
|
# Get all needed variables from the library
|
||||||
ncdb
|
ncdb
|
||||||
@@ -18,9 +29,6 @@ debug_mode
|
|||||||
# Must be root
|
# Must be root
|
||||||
root_check
|
root_check
|
||||||
|
|
||||||
# https://raw.githubusercontent.com/nextcloud/vm/master/apps/fulltextsearch.sh
|
|
||||||
# T&M Hansson IT AB © - 2021, https://www.hanssonit.se/
|
|
||||||
# SwITNet Ltd © - 2021, https://switnet.net/
|
|
||||||
|
|
||||||
if [ bashio::config.is_true 'install_elasticsearch' ] && [ ! is_app_installed "fulltextsearch" ]; then
|
if [ bashio::config.is_true 'install_elasticsearch' ] && [ ! is_app_installed "fulltextsearch" ]; then
|
||||||
echo "Installing Full Text Search"
|
echo "Installing Full Text Search"
|
||||||
|
|||||||
Reference in New Issue
Block a user