Initial commit
This commit is contained in:
commit
529efd53a1
140 changed files with 10310 additions and 0 deletions
22
tools/init_system.sh
Executable file
22
tools/init_system.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
clear
|
||||
|
||||
echo "Inizializzo database ? "
|
||||
echo "L'operazione annullera' tutti i records presenti"
|
||||
echo ""
|
||||
echo "Premi invio per continuare o CTRL+C per terminare"
|
||||
|
||||
read dummy
|
||||
|
||||
echo -n "Zeroing DB ... "
|
||||
# cat ../db/init-tables.sql | sqlite3 ../db/petar.db3
|
||||
cp ../db/empty.db3 ../db/petar.db3
|
||||
echo " [done] "
|
||||
echo ""
|
||||
|
||||
echo -n "Removing existing queues ... "
|
||||
rm -f ../queue/*.*
|
||||
rm -f ../queue/archives/*.*
|
||||
echo " [done] "
|
||||
echo ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue