mirror of
https://github.com/netbox-community/netbox.git
synced 2026-05-06 14:04:12 +08:00
8 lines
162 B
Bash
Executable File
8 lines
162 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DB=${1:-netbox}
|
|
|
|
# Drop and re-create the database locally
|
|
sudo -u postgres psql -c "drop database $DB"
|
|
sudo -u postgres psql -c "create database $DB"
|