Update install_cockpit.sh

This commit is contained in:
qiaofeng1227 2024-01-03 13:07:40 +08:00 committed by GitHub
parent ed5da5d504
commit a79b6a3013
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,6 +172,7 @@ Set_Repository() {
Restart_Cockpit(){
echo "$echo_prefix_cockpit Restart Cockpit"
sudo systemctl daemon-reload
sudo systemctl enable cockpit 2> /dev/null
sudo systemctl restart cockpit.socket 2> /dev/null
sudo systemctl restart cockpit || exit 1
}