workflow: changes to make test workflow work (#207)
* test6 * fix function call * add final missing newline to patch * remove existing config prompt * add pve-yew-mobile-gui to dep and test --------- Co-authored-by: Meliox <na>
This commit is contained in:
parent
abe8dcfee8
commit
2221c8fe8c
1
debian/pve-mod.triggers
vendored
1
debian/pve-mod.triggers
vendored
@ -1,2 +1,3 @@
|
||||
interest-noawait /usr/share/pve-manager/js
|
||||
interest-noawait /usr/share/perl5/PVE
|
||||
interest-noawait /usr/share/pve-yew-mobile-gui
|
||||
|
||||
@ -27,7 +27,7 @@ ask() {
|
||||
}
|
||||
bool() { [[ "$1" == true ]] && echo 1 || echo 0; }
|
||||
|
||||
_load_conf_debug() {
|
||||
_load_conf() {
|
||||
[[ -f "$NODE_INFO_CONF" ]] || return 0
|
||||
local in_debug=0 line key val
|
||||
while IFS= read -r line; do
|
||||
@ -565,15 +565,6 @@ main() {
|
||||
err "A legacy pve-mod bash-script installation was detected in Nodes.pm.\nRemove it first:\n bash /path/to/pve-mod-gui-sensors.sh uninstall"
|
||||
fi
|
||||
|
||||
# ── Existing config notice ────────────────────────────────────────────────
|
||||
if [[ -f "$CONF_FILE" ]]; then
|
||||
local choice
|
||||
choice=$(ask "Existing configuration found at $CONF_FILE — Reconfigure? (Y/n)")
|
||||
case "$choice" in
|
||||
[nN]) info "Keeping existing configuration."; exit 0 ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# ── Initialize all config variables with safe defaults ────────────────────
|
||||
MOD_NODE_INFO=0; MOD_NAG_SCREEN=0
|
||||
LM_SENSORS_ENABLED=0
|
||||
|
||||
@ -13,9 +13,9 @@ echo "deb [trusted=yes] http://download.proxmox.com/debian/pve $SUITE pve-no-sub
|
||||
| sudo tee /etc/apt/sources.list.d/pve-test.list >/dev/null
|
||||
sudo apt-get update -qq
|
||||
|
||||
echo "[fetch] Downloading pve-manager and proxmox-widget-toolkit..."
|
||||
echo "[fetch] Downloading pve-manager, proxmox-widget-toolkit, and pve-yew-mobile-gui..."
|
||||
cd "$WORKDIR"
|
||||
apt-get download pve-manager proxmox-widget-toolkit
|
||||
apt-get download pve-manager proxmox-widget-toolkit pve-yew-mobile-gui
|
||||
|
||||
echo "[fetch] Extracting to system paths..."
|
||||
for deb in *.deb; do
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
--- a/usr/share/perl5/PVE/API2/Nodes.pm
|
||||
+++ b/usr/share/perl5/PVE/API2/Nodes.pm
|
||||
--- usr/share/perl5/PVE/API2/Nodes.pm 2026-05-24 02:05:58.000000000 +0200
|
||||
+++ /usr/share/perl5/PVE/API2/Nodes.pm 2026-06-13 16:29:47.810720485 +0200
|
||||
@@ -251,6 +251,7 @@
|
||||
{ name => 'report' },
|
||||
{ name => 'rrd' }, # fixme: remove?
|
||||
@ -8,12 +8,10 @@
|
||||
{ name => 'scan' },
|
||||
{ name => 'sdn' },
|
||||
{ name => 'services' },
|
||||
@@ -878,6 +879,57 @@
|
||||
"pve-node-9.0/$param->{node}", $param->{timeframe}, $param->{cf},
|
||||
@@ -879,6 +880,56 @@
|
||||
);
|
||||
},
|
||||
-});
|
||||
+});
|
||||
});
|
||||
+
|
||||
+__PACKAGE__->register_method({
|
||||
+ name => 'gpurrddata',
|
||||
@ -66,3 +64,4 @@
|
||||
+});
|
||||
|
||||
__PACKAGE__->register_method({
|
||||
name => 'syslog',
|
||||
|
||||
@ -1 +1 @@
|
||||
trigger workflow test 1, 2, 3, 4, 5
|
||||
trigger workflow test 1, 2, 3, 4, 5, 6
|
||||
Loading…
Reference in New Issue
Block a user