mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
fix
This commit is contained in:
parent
d00031f92d
commit
2c24ea7c29
@ -178,9 +178,11 @@ Set_Firewall(){
|
|||||||
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
|
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
|
||||||
sudo firewall-cmd --reload
|
sudo firewall-cmd --reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
Set_Selinux(){
|
||||||
|
echo "$echo_prefix_cockpit Set Selinux for cockpit access"
|
||||||
if [ -f /etc/selinux/config ]; then
|
if [ -f /etc/selinux/config ]; then
|
||||||
echo "Set Selinux for Cockpit..."
|
echo "Set Selinux for Cockpit..."
|
||||||
sudo setenforce 0 1>/dev/null 2>&1
|
sudo setenforce 0 1>/dev/null 2>&1
|
||||||
@ -315,6 +317,7 @@ Install_Cockpit(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
Set_Firewall
|
Set_Firewall
|
||||||
|
Set_Selinux
|
||||||
Set_Cockpit
|
Set_Cockpit
|
||||||
Edit_Menu
|
Edit_Menu
|
||||||
Restart_Cockpit
|
Restart_Cockpit
|
||||||
|
Loading…
Reference in New Issue
Block a user