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