remove existing config prompt
This commit is contained in:
parent
53415bc806
commit
803088522a
@ -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
|
||||
|
||||
@ -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',
|
||||
@ -65,4 +63,5 @@
|
||||
+ },
|
||||
+});
|
||||
|
||||
__PACKAGE__->register_method({
|
||||
__PACKAGE__->register_method({
|
||||
name => 'syslog',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user