1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

lowercase username

This commit is contained in:
George Hunt 2021-09-02 19:30:41 +01:00
parent 1a3ebc4675
commit 03c2b5d6e0

View file

@ -4,9 +4,16 @@
SITE_PACKAGES=$({{ jupyterhub_venv }}/bin/getsite.py)
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep 'await self.render'
if [ $? -ne 0 ];then
echo Updating file
echo Updating to \"await self.render\"
sed -i -e's/self.render/await self.render/' $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py
else
echo Patch already applied. Skipping. . .
echo Await patch already applied. Skipping. . .
fi
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep data['data'].lower()'
if [ $? -ne 0 ];then
echo Updating to data['username'].lower()
sed -i -e's/data['username']/data['username'].lower()/' $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py
else
echo username.lower() patch already applied. Skipping. . .
fi