mirror of
https://github.com/MedzikUser/HomeDisk.git
synced 2024-08-14 21:46:53 +00:00
12 lines
245 B
Bash
Executable file
12 lines
245 B
Bash
Executable file
#!/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`!'
|