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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user