diff --git a/ct/firecrawl.sh b/ct/firecrawl.sh index aa183bab8..928e39129 100644 --- a/ct/firecrawl.sh +++ b/ct/firecrawl.sh @@ -30,6 +30,8 @@ function update_script() { exit fi + ensure_dependencies build-essential + if check_for_gh_release "firecrawl" "firecrawl/firecrawl"; then msg_info "Stopping Services" systemctl stop firecrawl firecrawl-playwright @@ -40,7 +42,7 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "firecrawl" "firecrawl/firecrawl" "tarball" "latest" "/opt/firecrawl" restore_backup - + FDB_VERSION="$(awk -F= '/^ARG FDB_VERSION=/{print $2; exit}' /opt/firecrawl/apps/api/Dockerfile)" if [[ -z "$FDB_VERSION" ]]; then msg_error "FDB_VERSION pin not found in upstream Dockerfile" diff --git a/install/firecrawl-install.sh b/install/firecrawl-install.sh index f0cca03a5..96bcaa8ba 100644 --- a/install/firecrawl-install.sh +++ b/install/firecrawl-install.sh @@ -15,6 +15,7 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ + build-essential \ cmake \ git \ nftables \ @@ -43,7 +44,6 @@ FDB_ARCH="$(get_system_arch)" fetch_and_deploy_gh_release "foundationdb-clients" "apple/foundationdb" "binary" "$FDB_VERSION" "/opt/foundationdb-clients" "foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH}.deb" msg_ok "Configured FDB" - PG_DB_NAME="firecrawl" PG_DB_USER="firecrawl" PG_DB_EXTENSIONS="pgcrypto,pg_cron" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db msg_info "Configuring pg_cron"