diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-02 19:22:53 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-02 19:22:53 +0100 |
commit | 663d4a2a02bfc10b50d109cc076eb54cfc8975b6 (patch) | |
tree | d5ebdee7b651f52fd99287260ef0c9839076dffb /pre-push.sh | |
parent | 371542fb1eafb721fe44fe9fbed3f37f2aeafe5e (diff) | |
download | troggle-663d4a2a02bfc10b50d109cc076eb54cfc8975b6.tar.gz troggle-663d4a2a02bfc10b50d109cc076eb54cfc8975b6.tar.bz2 troggle-663d4a2a02bfc10b50d109cc076eb54cfc8975b6.zip |
JSLIB and tidy path settings
Diffstat (limited to 'pre-push.sh')
-rw-r--r-- | pre-push.sh | 22 |
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 |