Refactor ElasticSearch repo setup for readability

This commit is contained in:
CanbiZ (MickLesk)
2026-04-30 09:53:23 +02:00
committed by GitHub
parent be7cac70de
commit 1b5bc15dac
+7 -2
View File
@@ -34,7 +34,12 @@ NODE_VERSION="24" setup_nodejs
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-x86_64-unknown-linux-gnu.zip" fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-x86_64-unknown-linux-gnu.zip"
msg_info "Installing ElasticSearch" msg_info "Installing ElasticSearch"
setup_deb822_repo "elastic-8.x" "https://artifacts.elastic.co/GPG-KEY-elasticsearch" "https://artifacts.elastic.co/packages/8.x/apt" "stable" "main" setup_deb822_repo \
"elastic-8.x" \
"https://artifacts.elastic.co/GPG-KEY-elasticsearch" \
"https://artifacts.elastic.co/packages/8.x/apt" \
"stable" \
"main"
ES_JAVA_OPTS="-Xms1g -Xmx1g" $STD apt install -y elasticsearch ES_JAVA_OPTS="-Xms1g -Xmx1g" $STD apt install -y elasticsearch
msg_ok "Installed ElasticSearch" msg_ok "Installed ElasticSearch"
@@ -108,7 +113,7 @@ EOF
echo "Password: ${TA_PASSWORD}" echo "Password: ${TA_PASSWORD}"
echo "Elasticsearch Password: ${ES_PASSWORD}" echo "Elasticsearch Password: ${ES_PASSWORD}"
} >~/tubearchivist.creds } >~/tubearchivist.creds
$STD systemctl enable --now redis-server systemctl enable -q --now redis-server
msg_ok "Set up Tube Archivist" msg_ok "Set up Tube Archivist"
msg_info "Configuring Nginx" msg_info "Configuring Nginx"