mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
services delete
This commit is contained in:
parent
b01b96685b
commit
eb72b45ce6
1 changed files with 4 additions and 4 deletions
|
@ -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 -------------------------------------------------------"
|
||||
|
||||
|
|
Loading…
Reference in a new issue