Skip to content

Commit

Permalink
fix: explicit surrealdb install dir
Browse files Browse the repository at this point in the history
  • Loading branch information
enricorotundo committed Feb 11, 2025
1 parent 1c188d0 commit 34ed4bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ install_surrealdb() {
else
SURREALDB_INSTALL_PATH="/home/$(whoami)/.surrealdb"
fi
mkdir -p "$SURREALDB_INSTALL_PATH"
SURREALDB_BINARY="$SURREALDB_INSTALL_PATH/surreal"

# Check if SurrealDB is already installed
Expand All @@ -62,7 +63,8 @@ install_surrealdb() {
echo "Installing SurrealDB version 2..." | log_with_service_name "SurrealDB" $GREEN

# Install SurrealDB
curl -sSf https://install.surrealdb.com | sh
curl -sSf https://install.surrealdb.com > /tmp/surreal_install.sh
sh /tmp/surreal_install.sh -- "$SURREALDB_INSTALL_PATH"

if [ -f "$SURREALDB_BINARY" ]; then
echo "Moving SurrealDB binary to /usr/local/bin..." | log_with_service_name "SurrealDB" $GREEN
Expand Down

0 comments on commit 34ed4bf

Please sign in to comment.