This commit is contained in:
Darren 2023-10-08 18:46:20 +08:00 committed by GitHub
parent d00031f92d
commit 2c24ea7c29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,9 +178,11 @@ Set_Firewall(){
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
fi
fi
}
Set_Selinux(){
echo "$echo_prefix_cockpit Set Selinux for cockpit access"
if [ -f /etc/selinux/config ]; then
echo "Set Selinux for Cockpit..."
sudo setenforce 0 1>/dev/null 2>&1
@ -315,6 +317,7 @@ Install_Cockpit(){
fi
Set_Firewall
Set_Selinux
Set_Cockpit
Edit_Menu
Restart_Cockpit