mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
* Add Postgresql support Co-authored-by: Ajin Abraham <[email protected]> Co-authored-by: superpoussin22 <[email protected]>
12 lines
382 B
Bash
12 lines
382 B
Bash
#!/bin/bash
|
|
set -e
|
|
POSTGRES=$1
|
|
echo "Postgres support : ${POSTGRES}"
|
|
if [ "$POSTGRES" == True ]; then
|
|
pip3 install psycopg2-binary
|
|
#Enable postgres support
|
|
sed -i '/# Sqlite3 suport/,/# End Sqlite3 support/d' ../MobSF/settings.py && \
|
|
sed -i '/# Postgres DB - Install psycopg2/,/"""/d' ../MobSF/settings.py && \
|
|
sed -i '/# End Postgres support/,/"""/d' ../MobSF/settings.py
|
|
fi
|