Files
Mobile-Security-Framework-M…/scripts/postgres_support.sh
T
Ajin Abraham 7c0ba62625 July 21 QA (#1768)
* Fixes:#1745, iOS permissions as dict

* Fixes #1753, Fix all typos from codespell

* add codespell to lint check
2021-07-17 15:47:55 -07:00

12 lines
407 B
Bash
Executable File

#!/bin/bash
set -e
POSTGRES=$1
echo "Postgres support : ${POSTGRES}"
if [ "$POSTGRES" == True ]; then
pip3 install psycopg2-binary
#Enable postgres support
sed -i '/# Sqlite3 support/,/# End Sqlite3 support/d' mobsf/MobSF/settings.py && \
sed -i '/# Postgres DB - Install psycopg2/,/"""/d' mobsf/MobSF/settings.py && \
sed -i '/# End Postgres support/,/"""/d' mobsf/MobSF/settings.py
fi