fix cockpit

This commit is contained in:
Darren 2023-10-13 08:57:16 +08:00 committed by GitHub
parent 09d134f2ce
commit 47ca7aafd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -321,7 +321,10 @@ Install_Cockpit(){
export DEBIAN_FRONTEND=noninteractive
sudo pkcon refresh > /dev/null
sudo pkcon get-updates > /dev/null
sudo pkcon install $cockpit_packages -y --allow-untrusted --allow-reinstall
output=$(sudo pkcon install $cockpit_packages -y --allow-untrusted --allow-reinstall 2>&1)
if echo "$output" | grep -q "offline"; then
Upgrade_Cockpit
fi
Restart_Cockpit
fi