1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/jupyterhub/templates/patch_await.sh
2021-09-01 00:49:49 +00:00

11 lines
436 B
Bash
Executable file

#!/bin/bash -x
# add await to asyncio change password function
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/' {{ jupyterhub_venv }}/lib/python3.7/site-packages/firstuseauthenticator/firstuseauthenticator.py
else
echo Patch already applied. Skipping. . .
fi