mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
edit menu jq edit
This commit is contained in:
parent
fdf2f55c48
commit
52bc0c480b
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ sudo docker restart websoft9-nginxproxymanager
|
|||
EditMenu(){
|
||||
|
||||
echo "Start to Edit Cockpit Menu ..."
|
||||
if command -v yq > /dev/null; then
|
||||
if command -v jq > /dev/null; then
|
||||
if [ -e /usr/share/cockpit/systemd ]; then
|
||||
jq '. | .tools as $menu | .menu as $tools | .tools=$tools | .menu=$menu | del(.tools.services) | del(.menu.preload.services) | .menu.index = .tools.index | del(.tools.index) | .menu.index.order = -2' /usr/share/cockpit/systemd/manifest.json > /usr/share/cockpit/systemd/manifest.json.tmp
|
||||
rm -rf /usr/share/cockpit/systemd/manifest.json
|
||||
|
|
Loading…
Reference in a new issue