Skip to content

Instantly share code, notes, and snippets.

@anantshri
Created April 26, 2016 13:36
Show Gist options
  • Save anantshri/b46486a6d852c19f5aa0cfbf95f2466f to your computer and use it in GitHub Desktop.
Save anantshri/b46486a6d852c19f5aa0cfbf95f2466f to your computer and use it in GitHub Desktop.
#!/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