From b5759dda481111b24d2e4b4576c7e41388af2112 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:14:10 +0200 Subject: [PATCH] rybbit --- install/docspell-install.sh | 2 +- install/rybbit-install.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/install/docspell-install.sh b/install/docspell-install.sh index d76983d2..8b963d18 100644 --- a/install/docspell-install.sh +++ b/install/docspell-install.sh @@ -59,7 +59,7 @@ msg_ok "Set up PostgreSQL Database" fetch_and_deploy_gh_release "docspell-joex" "eikek/docspell" "binary" "latest" "/opt/docspell-joex" "docspell-joex_*all.deb" fetch_and_deploy_gh_release "docspell-restserver" "eikek/docspell" "binary" "latest" "/opt/docspell-restserver" "docspell-restserver_*all.deb" fetch_and_deploy_gh_release "docspell-dsc" "docspell/dsc" "singlefile" "latest" "/usr/bin" "dsc" - +fetch_and_deploy_gh_release "apache-solr" "apache/solr" "tarball" "latest" "/opt/docspell" msg_info "Setup Docspell" diff --git a/install/rybbit-install.sh b/install/rybbit-install.sh index 56f82bcd..c7d913d9 100644 --- a/install/rybbit-install.sh +++ b/install/rybbit-install.sh @@ -48,6 +48,32 @@ msg_ok "Set up PostgreSQL Database" fetch_and_deploy_gh_release "rybbit" "rybbit-io/rybbit" "tarball" "latest" "/opt/rybbit" +cd /opt/rybbit/shared +npm install +npm run build + +cd /opt/rybbit/server +RUN npm ci +npm run build + +cd /opt/rybbit/client +npm ci --legacy-peer-deps +npm run build + +mv /opt/rybbit/.env.example /opt/rybbit/.env +sed -i "s|^POSTGRES_DB=.*|POSTGRES_DB=$DB_NAME|g" /opt/rybbit/.env +sed -i "s|^POSTGRES_USER=.*|POSTGRES_USER=$DB_USER|g" /opt/rybbit/.env +sed -i "s|^POSTGRES_PASSWORD=.*|POSTGRES_PASSWORD=$DB_PASS|g" /opt/rybbit/.env +sed -i "s|^DOMAIN_NAME=.*|DOMAIN_NAME=localhost|g" /opt/rybbit/.env +sed -i "s|^BASE_URL=.*|BASE_URL=\"http://localhost\"|g" /opt/rybbit/.env +msg_ok "Rybbit Installed" + +msg_info "Setting up Caddy" +mkdir -p /etc/caddy +cp /opt/rybbit/Caddyfile /etc/caddy/Caddyfile +systemctl enable -q --now caddy +msg_ok "Caddy Setup" + motd_ssh customize