This commit is contained in:
Alexandre CATTEAU 2024-07-13 15:19:41 +02:00
parent d2515b577f
commit 08953fc74c

View File

@ -13,10 +13,10 @@ fi
if [ -f /usr/lib/python3.12/site-packages/webssh/handler.py ]; then
echo "Alter WebSSH configuration to remove SSH key passphrase from error message..."
if [[ $user != 'root' ]]; then
sudo sed -i -e "s/or wrong passphrase {} for decrypting it/or wrong passphrase for decrypting it/g" \
sudo sed -i -e 's/or wrong passphrase "{}" for decrypting it/or wrong passphrase for decrypting it/g' \
/usr/lib/python3.12/site-packages/webssh/handler.py
else
sed -i -e "s/or wrong passphrase {} for decrypting it/or wrong passphrase for decrypting it/g" \
sed -i -e 's/or wrong passphrase "{}" for decrypting it/or wrong passphrase for decrypting it/g' \
/usr/lib/python3.12/site-packages/webssh/handler.py
fi
else