Menu

[r8825]: / projects / cli / gui / mkdb.sh  Maximize  Restore  History

Download this file

14 lines (9 with data), 220 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/sh
# quick script to make the database.
dir=$(dirname $0)
db=${1-/data/freenas-v1.db}
if [ -f ${db} ]; then
mv ${db} "${db}.old"
fi
python manage.py syncdb --migrate --noinput
python manage.py createadmin
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.