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

use wild card to match any python

This commit is contained in:
George Hunt 2021-09-01 01:57:31 +01:00
parent a4ffe5556b
commit ecf6a9ec7d

View file

@ -1,10 +1,10 @@
#!/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'
cat {{ jupyterhub_venv }}/lib/*/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
sed -i -e's/self.render/await self.render/' {{ jupyterhub_venv }}/lib/*/site-packages/firstuseauthenticator/firstuseauthenticator.py
else
echo Patch already applied. Skipping. . .
fi