From a79b6a3013553d2042719bc7c22f5bbf21861c0c Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 3 Jan 2024 13:07:40 +0800 Subject: [PATCH] Update install_cockpit.sh --- install/install_cockpit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/install_cockpit.sh b/install/install_cockpit.sh index 58df1af6..f14863ed 100644 --- a/install/install_cockpit.sh +++ b/install/install_cockpit.sh @@ -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 } @@ -400,4 +401,4 @@ if systemctl cat packagekit > /dev/null 2>&1; then sudo systemctl restart packagekit else echo "no packagekit" -fi \ No newline at end of file +fi