33 lines
396 B
Bash
Executable File
33 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
IFS='/' read -a array <<< pwd
|
|
|
|
if [[ "$(pwd)" != *setup ]]
|
|
then
|
|
cd ./setup
|
|
fi
|
|
|
|
# reset the database
|
|
if [ -e ../data/empire.db ]
|
|
then
|
|
rm ../data/empire.db
|
|
fi
|
|
|
|
./setup_database.py
|
|
cd ..
|
|
|
|
# remove the debug file if it exists
|
|
if [ -e empire.debug ]
|
|
then
|
|
rm empire.debug
|
|
fi
|
|
|
|
# remove the download folders
|
|
if [ -d ./downloads/ ]
|
|
then
|
|
rm -rf ./downloads/
|
|
fi
|
|
|
|
# start up Empire
|
|
./empire
|