Hotfix to improve installer

This commit is contained in:
Ajin Abraham
2018-11-15 01:28:06 +05:30
parent 00161ef6b3
commit 9cd68b0972
4 changed files with 18 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ from install.windows.setup import windows_config_local
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
#==============================================
MOBSF_VER = "v1.0.2 Beta"
MOBSF_VER = "v1.0.3 Beta"
BANNER = """
__ __ _ ____ _____ _ ___
| \/ | ___ | |__/ ___|| ___| __ _/ | / _ \
+9 -3
View File
@@ -1,9 +1,15 @@
echo
echo "=======================MobSF Clean Script for Unix======================="
echo "Running this script will delete the Scan database, all files uploaded and generated."
read -p "Are you sure? " -n 1 -r
if [ "$1" != "" ]; then
VAL="$1"
else
read -p "Continue? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
VAL=$confirm
fi
echo
if [[ $REPLY =~ ^[Yy]$ ]]
if [[ $VAL =~ ^[Yy]$ ]]
then
echo "Deleting all Uploads"
rm -rf ../uploads/*
@@ -26,4 +32,4 @@ then
echo "Deleting Secret File"
rm -rf ../secret
echo "Done"
fi
fi
+3
View File
@@ -24,6 +24,9 @@ where python >nul 2>&1 && (
set INCLUDE=C:\Program Files\OpenSSL-Win64\include;%INCLUDE%
echo [INSTALL] Installing Requirements
pip install -r requirements.txt
echo [INSTALL] Migrating Database
python manage.py makemigrations
python manage.py migrate
echo [INSTALL] Installation Complete
) || (
echo [ERROR] python3 is not installed
+5
View File
@@ -17,4 +17,9 @@ if [[ "$unamestr" == 'Darwin' ]]; then
fi
echo '[INSTALL] Installing Requirements'
pip install -r requirements.txt
echo '[INSTALL] Clean Up'
bash scripts/clean.sh y
echo '[INSTALL] Migrating Database'
python manage.py makemigrations
python manage.py migrate
echo '[INSTALL] Installation Complete'