summaryrefslogtreecommitdiffstats
path: root/pre-push.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pre-push.sh')
-rw-r--r--pre-push.sh22
1 files changed, 10 insertions, 12 deletions
diff --git a/pre-push.sh b/pre-push.sh
index 7ae6878..92cf6d2 100644
--- a/pre-push.sh
+++ b/pre-push.sh
@@ -13,18 +13,16 @@ python manage.py inspectdb > troggle-inspectdb.py
#egrep -in "unable|error" troggle-inspectdb.py
echo remove passwords.
cp localsettings.py localsettingsWSL.py
-grep EXPOUSERPASS localsettings*.py
-sed -i '/EXPOUSERPASS/ s/^.*$/EXPOUSERPASS = "nnn:gggggg"/' localsettings*.py
-sed -i '/EXPOUSERPASS/ s/^.*$/EXPOUSERPASS = "nnn:gggggg"/' diffsettings.txt
-echo " " reset: EXPOUSERPASS = \"nnn:gggggg\"
-grep EMAIL_HOST_PASSWORD localsettings*.py
-sed -i '/EMAIL_HOST_PASSWORD/ s/^.*$/EMAIL_HOST_PASSWORD = "insert-real-email-password-here"/' localsettings*.py
-sed -i '/EMAIL_HOST_PASSWORD/ s/^.*$/EMAIL_HOST_PASSWORD = "insert-real-email-password-here"/' diffsettings.txt
-echo " " reset: EMAIL_HOST_PASSWORD = \"insert-real-email-password-here\"
-grep SECRET_KEY *settings.*
-sed -i '/SECRET_KEY/ s/^.*$/SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2"/' settings.py
-sed -i '/SECRET_KEY/ s/^.*$/SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2"/' diffsettings.txt
-echo " " reset: SECRET_KEY = \"not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2\"
+sed -i '/EXPOUSERPASS/ s/^.*$/EXPOUSERPASS = "nnn:gggggg - real-expo-password--is-imported-from-credentials.py"/' diffsettings.txt
+echo " reset: EXPOUSERPASS = \"nnn:gggggg\" - real-expo-password--is-imported-from-credentials.py"
+
+sed -i '/EMAIL_HOST_PASSWORD/ s/^.*$/EMAIL_HOST_PASSWORD = "real-email-password--is-imported-from-credentials.py"/' diffsettings.txt
+echo " reset: EMAIL_HOST_PASSWORD = \"real-email-password-is-imported-from-credentials.py\""
+
+sed -i '/SECRET_KEY/ s/^.*$/SECRET_KEY = "real-SECRET_KEY-is-imported-from-credentials.py"/' diffsettings.txt
+echo " reset: SECRET_KEY = \"real-SECRET_KEY-is-imported-from-credentials.py\""
+
+
#
# Do these before final testing, *not* just before pushing:
# in ./pre-run.sh