Update install_cockpit.sh

This commit is contained in:
qiaofeng1227 2024-01-05 14:35:30 +08:00 committed by GitHub
parent 6388003629
commit dddeed982b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +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 enable cockpit.socket 2> /dev/null
sudo systemctl restart cockpit.socket 2> /dev/null
sudo systemctl restart cockpit || exit 1
}