mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
lowercase username
This commit is contained in:
parent
1a3ebc4675
commit
03c2b5d6e0
1 changed files with 9 additions and 2 deletions
|
@ -4,9 +4,16 @@
|
||||||
SITE_PACKAGES=$({{ jupyterhub_venv }}/bin/getsite.py)
|
SITE_PACKAGES=$({{ jupyterhub_venv }}/bin/getsite.py)
|
||||||
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep 'await self.render'
|
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep 'await self.render'
|
||||||
if [ $? -ne 0 ];then
|
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
|
sed -i -e's/self.render/await self.render/' $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue