services delete

This commit is contained in:
76487013@qq.com 2023-06-06 15:11:20 +08:00
parent b01b96685b
commit eb72b45ce6

View file

@ -216,7 +216,7 @@ if [ "${os_type}" == 'Ubuntu' ]; then
fi
VERSION_CODENAME=$(cat /etc/os-release |grep VERSION_CODENAME|cut -f2 -d"=")
sudo apt install -t ${VERSION_CODENAME}-backports cockpit -y
sudo apt install cockpit-pcp cockpit-packagekit -y 1>/dev/null 2>&1
sudo apt install cockpit-pcp -y 1>/dev/null 2>&1
echo "Cockpit allow root user"
echo "" >/etc/cockpit/disallowed-users 1>/dev/null 2>&1
fi
@ -455,9 +455,9 @@ if [ -e /usr/share/cockpit/users ]; then
sudo sed -i 's/menu/tools/g' /usr/share/cockpit/users/manifest.json
fi
jq '. | del(.locales.ca-es) | del(.locales.cs-cz) | del(.locales.de-de) | del(.locales.es-es) | del(.locales.fi-fi) | del(.locales.fr-fr) | del(.locales.it-it) | del(.locales.ja-jp) | del(.locales.pl-pl) | del(.locales.pt-br) | del(.locales.ru-ru) | del(.locales.sv-se) | del(.locales.uk-ua) | del(.locales.zh-tw)' /usr/share/cockpit/shell/manifest.json > /usr/share/cockpit/shell/manifest.json.tmp
rm -rf /usr/share/cockpit/shell/manifest.json
mv /usr/share/cockpit/shell/manifest.json.tmp /usr/share/cockpit/shell/manifest.json
# jq '. | del(.locales.ca-es) | del(.locales.cs-cz) | del(.locales.de-de) | del(.locales.es-es) | del(.locales.fi-fi) | del(.locales.fr-fr) | del(.locales.it-it) | del(.locales.ja-jp) | del(.locales.pl-pl) | del(.locales.pt-br) | del(.locales.ru-ru) | del(.locales.sv-se) | del(.locales.uk-ua) | del(.locales.zh-tw)' /usr/share/cockpit/shell/manifest.json > /usr/share/cockpit/shell/manifest.json.tmp
# rm -rf /usr/share/cockpit/shell/manifest.json
# mv /usr/share/cockpit/shell/manifest.json.tmp /usr/share/cockpit/shell/manifest.json
echo "---------------------------------- Install success! you can install a app by websoft9's appstore -------------------------------------------------------"