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

softcode jupyterhub location

This commit is contained in:
George Hunt 2021-09-01 00:49:49 +00:00
parent 86c7515252
commit a4ffe5556b
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash -x
# Do not enable the warning about the insecurity of http protocol
sed -i -e's/if (window\.location.*/if (false) {/' /opt/iiab/jupyterhub/share/jupyterhub/templates/login.html
sed -i -e's/if (window\.location.*/if (false) {/' {{ jupyterhub_venv }}/share/jupyterhub/templates/login.html

View file

@ -1,10 +1,10 @@
#!/bin/bash -x
# add await to asyncio change password function
cat /opt/iiab/jupyterhub/lib/python3.7/site-packages/firstuseauthenticator/firstuseauthenticator.py |grep 'await self.render'
cat {{ jupyterhub_venv }}/lib/python3.7/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/' /opt/iiab/jupyterhub/lib/python3.7/site-packages/firstuseauthenticator/firstuseauthenticator.py
sed -i -e's/self.render/await self.render/' {{ jupyterhub_venv }}/lib/python3.7/site-packages/firstuseauthenticator/firstuseauthenticator.py
else
echo Patch already applied. Skipping. . .
fi