mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
* Fixes:#1745, iOS permissions as dict * Fixes #1753, Fix all typos from codespell * add codespell to lint check
12 lines
407 B
Bash
Executable File
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
|