From 1b38059e0a7342f7f73f986343526e8e15258db4 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 22 Dec 2024 22:06:46 -0300 Subject: [PATCH] Update install.sh --- install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 9cf8b2c..4a42c4e 100755 --- a/install.sh +++ b/install.sh @@ -88,11 +88,6 @@ echo "Setting up PostgreSQL database..." sudo systemctl start postgresql sudo systemctl enable postgresql -# Create database and user (with error handling) -sudo -u postgres psql -c "CREATE DATABASE generalbots;" 2>/dev/null || echo "Database might already exist" -sudo -u postgres psql -c "CREATE USER gbuser WITH PASSWORD 'gbpassword';" 2>/dev/null || echo "User might already exist" -sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE generalbots TO gbuser;" 2>/dev/null || echo "Privileges might already be granted" - # Start Redis echo "Starting Redis service..." sudo systemctl start redis-server @@ -110,4 +105,4 @@ echo -e "\nService Status:" echo "PostgreSQL status:" sudo systemctl status postgresql --no-pager echo -e "\nRedis status:" -sudo systemctl status redis-server --no-pager \ No newline at end of file +sudo systemctl status redis-server --no-pager