Update install.sh
This commit is contained in:
parent
9dd2950c25
commit
1b38059e0a
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue