override menu

This commit is contained in:
Darren 2023-10-06 11:19:57 +08:00 committed by GitHub
parent 4fc0732fc7
commit 7bf0e2e1ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 56 additions and 7 deletions

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -0,0 +1,4 @@
{
"menu": null,
"tools": null
}

View file

@ -17,7 +17,7 @@ Create more, better and more realistic software solutions for the world
## Candidate
- [mayo7e](https://github.com/mayo7e): [#296](https://github.com/Websoft9/websoft9/issues/296)
- [mayo7e](https://github.com/mayo7e): [#296](https://github.com/Websoft9/websoft9/issues/296) mayowa.wh@gmail.com
## Honorary Alumni

View file

@ -15,4 +15,8 @@ usermod -aG sudo username
#### Can not login when I reinstall my Instance?
Need to clear all cookie at you browser
Need to clear all cookie at you browser
#### How to modify Websoft9 port?
Access web console > settings or use cli to modify port

View file

@ -54,10 +54,9 @@ done
echo_prefix_cockpit=$'\n[Cockpit] - '
# package cockpit depends_on [cockpit-bridge,cockpit-ws,cockpit-system], but update cockpit the depends don't update
cockpit_packages="cockpit cockpit-ws cockpit-bridge cockpit-system cockpit-pcp cockpit-storaged cockpit-networkmanager cockpit-session-recording cockpit-doc cockpit-packagekit cockpit-sosreport"
cockpit_plugin_delete="apps,machines,selinux,subscriptions,kdump,updates,playground,packagekit,session-recording"
menu_overrides_github_page_url="https://websoft9.github.io/websoft9/cockpit/menu_override"
cockpit_config_github_page_url="https://websoft9.github.io/websoft9/cockpit/cockpit.conf"
cockpit_menu_overrides=(networkmanager.override.json shell.override.json storaged.override.json systemd.override.json users.override.json)
cockpit_menu_overrides=(networkmanager.override.json shell.override.json storaged.override.json systemd.override.json users.override.json apps.override.json machines.override.json selinux.override.json subscriptions.override.json kdump.override.json updated.override.json playground.override.json packagekit.override.json session-recording.override.json)
# export OS release environments
if [ -f /etc/os-release ]; then
. /etc/os-release
@ -238,8 +237,6 @@ Edit_Menu(){
echo "Download override files from URL..."
Download_Menu_Override
fi
echo "$cockpit_plugin_delete" | tr ',' '\n' | sudo xargs -I {} rm -rf "/usr/share/cockpit/{}"
}
Upgrade_Cockpit(){

11
systemd/script/crontab.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
# monitor config.ini, make sure port is the same with cockpit.socket
cockpit_port=from config.ini
echo "Change cockpit default port to $cockpit_port ..."
sudo sed -i "s/ListenStream=9090/ListenStream=$cockpit_port/" /lib/systemd/system/cockpit.socket

View file

@ -1,4 +1,5 @@
#!/bin/bash
/bin/bash send_credentials.sh
/bin/bash set_hosts.sh
/bin/bash set_hosts.sh
/bin/bash crontab.sh