From 85d41e542d6e6f3c00ffb16b32fee27cdee8dc31 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:18:47 +0100 Subject: [PATCH] Update install scripts for storybook, readium, ES Small fixes and improvements to installer scripts: - storybook-install.sh: make npx non-interactive (add -y) and cd into the detected project path before writing .projectpath to ensure generated files land in the project directory. - storyteller-install.sh: replace manual Readium curl/chmod flow with fetch_and_deploy_gh_release helper for consistent deployment; keep symlink to /usr/local/bin/readium. - tubearchivist-install.sh: set ES_JAVA_OPTS during elasticsearch install to limit heap (-Xms1g -Xmx1g) and explicitly disable xpack transport/http SSL in the config to avoid local SSL requirements. These changes improve automation reliability and resource/config defaults during automated installs. --- install/storybook-install.sh | 3 ++- install/storyteller-install.sh | 9 ++------- install/tubearchivist-install.sh | 4 +++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/install/storybook-install.sh b/install/storybook-install.sh index c9b5c46f..83037a24 100644 --- a/install/storybook-install.sh +++ b/install/storybook-install.sh @@ -20,13 +20,14 @@ mkdir -p /opt/storybook cd /opt/storybook msg_ok "Important: Interactive configuration will start now." -npx storybook@latest init --yes +npx -y storybook@latest init --yes PROJECT_PATH=$(find /opt/storybook -maxdepth 2 -name ".storybook" -type d 2>/dev/null | head -n1 | xargs dirname) if [[ -z "$PROJECT_PATH" ]]; then PROJECT_PATH="/opt/storybook" fi +cd "$PROJECT_PATH" echo "$PROJECT_PATH" >/opt/storybook/.projectpath msg_info "Creating Service" diff --git a/install/storyteller-install.sh b/install/storyteller-install.sh index 221b0147..476f210c 100644 --- a/install/storyteller-install.sh +++ b/install/storyteller-install.sh @@ -24,13 +24,8 @@ msg_ok "Installed Dependencies" NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs -msg_info "Installing Readium" -READIUM_VERSION="0.6.5" -mkdir -p /opt/readium -$STD curl -fsSL "https://github.com/readium/go-toolkit/releases/download/${READIUM_VERSION}/readium-x86_64-linux" -o /opt/readium/readium -chmod +x /opt/readium/readium -ln -sf /opt/readium /usr/local/bin/readium -msg_ok "Installed Readium" +fetch_and_deploy_gh_release "readium" "readium/cli" "prebuild" "latest" "/opt/readium" "readium_linux_x86_64.tar.gz" +ln -sf /opt/readium/readium /usr/local/bin/readium fetch_and_deploy_gl_release "storyteller" "storyteller-platform/storyteller" "tarball" "latest" "/opt/storyteller" diff --git a/install/tubearchivist-install.sh b/install/tubearchivist-install.sh index f4c2e0ba..e2c48481 100644 --- a/install/tubearchivist-install.sh +++ b/install/tubearchivist-install.sh @@ -33,7 +33,7 @@ fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/loc 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" -$STD apt install -y elasticsearch +ES_JAVA_OPTS="-Xms1g -Xmx1g" $STD apt install -y elasticsearch msg_ok "Installed ElasticSearch" msg_info "Configuring ElasticSearch" @@ -44,6 +44,8 @@ path.logs: /var/log/elasticsearch path.repo: ["/var/lib/elasticsearch/snapshot"] network.host: 127.0.0.1 xpack.security.enabled: false +xpack.security.transport.ssl.enabled: false +xpack.security.http.ssl.enabled: false EOF mkdir -p /var/lib/elasticsearch/snapshot chown -R elasticsearch:elasticsearch /var/lib/elasticsearch/snapshot