mirror of
https://github.com/MedzikUser/HomeDisk.git
synced 2024-08-14 21:46:53 +00:00
13 lines
245 B
Bash
13 lines
245 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ -f 'homedisk.db' ]
|
||
|
then
|
||
|
echo 'Database `homedisk.db` exists!'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# create a database using the commands from the `tables.sql` file
|
||
|
sqlite3 homedisk.db < tables.sql
|
||
|
|
||
|
echo 'Created SQLite database `homedisk.db`!'
|