Files
cgrates/data/storage/postgres/create_db_with_users.sh
Razvan Crainea 33282f8a3c add absolute path to SQL scripts
This allows the administrator to run the scripts from any directory
2015-08-11 15:23:48 +03:00

10 lines
265 B
Bash
Executable File

#
# Sample db and users creation. Replace here with your own details
#
sudo -u postgres dropdb -e cgrates
sudo -u postgres dropuser -e cgrates
sudo -u postgres psql -c "CREATE USER cgrates password 'CGRateS.org';"
sudo -u postgres createdb -e -O cgrates cgrates