Update install.sh

This commit is contained in:
Rodrigo Rodriguez 2024-12-22 22:06:46 -03:00 committed by GitHub
parent 9dd2950c25
commit 1b38059e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,11 +88,6 @@ echo "Setting up PostgreSQL database..."
sudo systemctl start postgresql sudo systemctl start postgresql
sudo systemctl enable 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 # Start Redis
echo "Starting Redis service..." echo "Starting Redis service..."
sudo systemctl start redis-server sudo systemctl start redis-server