Created
April 26, 2016 13:36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IP=0.0.0.0 | |
PORT=3000 | |
cd /usr/share/MobSF/ | |
if [ ! -d ~/.mobsf/ ] | |
then | |
echo "MobSF Started for the first time: Setup in progress" | |
echo "Creating directory structure in ~/.mobsf/" | |
mkdir -p ~/.mobsf/uploads | |
mkdir -p ~/.mobsf/static/downloads | |
mkdir -p ~/.mobsf/logs/certs | |
echo "Starting for first time and hence creating fresh DB" | |
python manage.py migrate | |
echo "All Done Enjoy" | |
fi | |
echo "Starting MobSF" | |
python manage.py runserver $IP:$PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment