diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-06 00:49:09 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-06 00:49:09 +0100 |
commit | d1cd72c5f88c581b8e446f3c92c0eb093500c60e (patch) | |
tree | 0b40a627ee461f1d03ca4b1a94e0c09d67b55e32 /pre-push.sh | |
parent | 6d6bec35f271b5ff072a884fbfc31f5b9cb36642 (diff) | |
download | troggle-d1cd72c5f88c581b8e446f3c92c0eb093500c60e.tar.gz troggle-d1cd72c5f88c581b8e446f3c92c0eb093500c60e.tar.bz2 troggle-d1cd72c5f88c581b8e446f3c92c0eb093500c60e.zip |
New user login/logoff system using standard Dj
Diffstat (limited to 'pre-push.sh')
-rw-r--r-- | pre-push.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pre-push.sh b/pre-push.sh index 92cf6d2..eb4e617 100644 --- a/pre-push.sh +++ b/pre-push.sh @@ -1,6 +1,6 @@ #! /bin/sh # create and sanitise files for pushing to repo -# Philip Sargent 2020/06/20 +# Philip Sargent 2021/04/06 echo deprecations. python -Wall manage.py check -v 3 2>deprecations.txt >/dev/null echo diffsettings. @@ -13,14 +13,17 @@ python manage.py inspectdb > troggle-inspectdb.py #egrep -in "unable|error" troggle-inspectdb.py echo remove passwords. cp localsettings.py localsettingsWSL.py -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 '/EXPOUSERPASS/ s/^.*$/EXPOUSERPASS = "nnn:gggggg - real-expo-password---imported-from-localsettings.py"/' diffsettings.txt +echo " reset: EXPOUSERPASS = \"nnn:gggggg\" - real-expo-password---imported-from-localsettings.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 '/EXPOADMINUSERPASS/ s/^.*$/EXPOADMINUSERPASS = "nnn:gggggg - real-expo-password---imported-from-localsettings.py"/' diffsettings.txt +echo " reset: EXPOUSERPASS = \"gggggg:nnn\" - real-expo-password---imported-from-localsettings.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\"" +sed -i '/EMAIL_HOST_PASSWORD/ s/^.*$/EMAIL_HOST_PASSWORD = "real-email-password---imported-from-localsettings.py"/' diffsettings.txt +echo " reset: EMAIL_HOST_PASSWORD = \"real-email-password--imported-from-localsettings.py\"" + +sed -i '/SECRET_KEY/ s/^.*$/SECRET_KEY = "real-SECRET_KEY--imported-from-localsettings.py"/' diffsettings.txt +echo " reset: SECRET_KEY = \"real-SECRET_KEY--imported-from-localsettings.py\"" # |