From 527ff0ec1e44845ba0fdfdc57fbd137a2af76add Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 13 Oct 2023 19:31:40 +0800 Subject: [PATCH] cockpit --- install/install_cockpit.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/install_cockpit.sh b/install/install_cockpit.sh index a9dd6573..1ab262f1 100644 --- a/install/install_cockpit.sh +++ b/install/install_cockpit.sh @@ -379,5 +379,10 @@ Install_PackageKit Set_Repository Install_Cockpit Test_Cockpit + # release package memory -# sudo systemctl restart packagekit.service +if systemctl cat packagekit > /dev/null 2>&1; then + sudo systemctl restart packagekit +else + echo "no packagekit" +fi \ No newline at end of file