1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Merge branch 'admin' of https://github.com/georgejhunt/iiab into jupyterhub-admin

This commit is contained in:
root 2021-08-31 23:09:03 -04:00
commit 69d15dea2e

View file

@ -1,10 +1,12 @@
#!/bin/bash -x
# add await to asyncio change password function
cat {{ jupyterhub_venv }}/lib/*/site-packages/firstuseauthenticator/firstuseauthenticator.py |grep 'await self.render'
SITE_PACKAGES=$({{ jupyterhub_venv }}/bin/python -m site|grep -v exist|grep site)
SITE_PACKAGES=${SITE_PACKAGES:5:-2}
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep 'await self.render'
if [ $? -ne 0 ];then
echo Updating file
sed -i -e's/self.render/await self.render/' {{ jupyterhub_venv }}/lib/*/site-packages/firstuseauthenticator/firstuseauthenticator.py
sed -i -e's/self.render/await self.render/' $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py
else
echo Patch already applied. Skipping. . .
fi