mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-02 10:41:04 +00:00
Move installing postgres into the if statement that checks if psql exists (#19)
This commit is contained in:
parent
c8e41f6a64
commit
3912e2980a
2 changed files with 6 additions and 3 deletions
|
@ -70,6 +70,9 @@ If you're looking to contribute to Skyvern, you'll need to install the pre-commi
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Running your first automation
|
||||||
|
|
||||||
|
|
||||||
# How it works
|
# How it works
|
||||||
Skyvern was inspired by the Task-Driven autonomous agent design popularized by [BabyAGI](https://github.com/yoheinakajima/babyagi) and [AutoGPT](https://github.com/Significant-Gravitas/AutoGPT) -- with one major difference: we give Skyvern the ability to interact with websites using browser automation libraries like [Playwright](https://playwright.dev/).
|
Skyvern was inspired by the Task-Driven autonomous agent design popularized by [BabyAGI](https://github.com/yoheinakajima/babyagi) and [AutoGPT](https://github.com/Significant-Gravitas/AutoGPT) -- with one major difference: we give Skyvern the ability to interact with websites using browser automation libraries like [Playwright](https://playwright.dev/).
|
||||||
|
|
||||||
|
|
6
setup.sh
6
setup.sh
|
@ -44,16 +44,16 @@ setup_postgresql() {
|
||||||
if ! command_exists psql; then
|
if ! command_exists psql; then
|
||||||
echo "`postgresql` is not installed."
|
echo "`postgresql` is not installed."
|
||||||
if [[ "$OSTYPE" != "darwin"* ]]; then
|
if [[ "$OSTYPE" != "darwin"* ]]; then
|
||||||
echo "Error: Please install postgresql manually and re-run the script." >&2
|
echo "Error: Please install postgresql and start the service manually and re-run the script." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! command_exists brew; then
|
if ! command_exists brew; then
|
||||||
echo "Error: brew is not installed, please install homebrew and re-run the script or install postgresql manually." >&2
|
echo "Error: brew is not installed, please install homebrew and re-run the script or install postgresql manually." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
brew install postgresql@14
|
||||||
|
brew services start postgresql@14
|
||||||
fi
|
fi
|
||||||
brew install postgresql@14
|
|
||||||
brew services start postgresql@14
|
|
||||||
|
|
||||||
if psql skyvern -U skyvern -c '\q'; then
|
if psql skyvern -U skyvern -c '\q'; then
|
||||||
echo "Connection successful. Database and user exist."
|
echo "Connection successful. Database and user exist."
|
||||||
|
|
Loading…
Add table
Reference in a new issue