#!/bin/bash

IFS='/' read -a array <<< pwd

if [[ "$(pwd)" != *setup ]]
then
	cd ./setup
fi

# reset the database
rm ../data/empyre.db
./setup_database.py
cd ..

# remove the debug file if it exists
rm empyre.debug

# remove the download folders
rm -rf ./downloads/

# start up EmPyre
./empyre --debug

#!/bin/bash

IFS='/' read -a array <<< pwd

if [[ "$(pwd)" != *setup ]]
then
	cd ./setup
fi

# reset the database
rm ../data/empyre.db
./setup_database.py
cd ..

# remove the debug file if it exists
rm empyre.debug

# remove the download folders
rm -rf ./downloads/

# start up EmPyre
./empyre --debug

# Support non-root instalation of DB
chown $(logname):$(logname) ../data/empyre.db

Support non-root instalation of DB
Support non-root instalation of DB

While the root user would generally run EmPyre.py, in some cases a normal user could run the application merely using 1024 < ports.