Update Python version to 3.14

This commit is contained in:
2026-03-17 21:45:18 +01:00
parent 81bcab04a1
commit ab75cc3ec2

View File

@@ -10,14 +10,14 @@ if [ -f $run_directory/.disabled ]; then
exit 0
fi
if [ -f /usr/lib/python3.12/site-packages/webssh/handler.py ]; then
if [ -f /usr/lib/python3.14/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' \
/usr/lib/python3.13/site-packages/webssh/handler.py
/usr/lib/python3.14/site-packages/webssh/handler.py
else
sed -i -e 's/or wrong passphrase "{}" for decrypting it/or wrong passphrase for decrypting it/g' \
/usr/lib/python3.13/site-packages/webssh/handler.py
/usr/lib/python3.14/site-packages/webssh/handler.py
fi
else
echo "WARNING: Could not find webssh directory! Could be due to major Python upgrade, or you not using PIP package."