From 03222e35356cf65a97a1e06509e5c55534a9b3ae Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Thu, 17 Oct 2024 16:58:17 +0200 Subject: [PATCH] fix: Add --full-inventory-postpone option support to linux installers Closes #792 --- contrib/unix/glpi-agent-appimage-hook | 2 ++ contrib/unix/installer/Getopt.pm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/contrib/unix/glpi-agent-appimage-hook b/contrib/unix/glpi-agent-appimage-hook index 0d399c2c3..c10318baf 100755 --- a/contrib/unix/glpi-agent-appimage-hook +++ b/contrib/unix/glpi-agent-appimage-hook @@ -75,6 +75,7 @@ GetOptions( 'debug+', 'delaytime=i', 'force', + 'full-inventory-postpone=i', 'html', 'json', 'lazy', @@ -590,6 +591,7 @@ glpi-agent-linux-installer.AppImage [options] --json save the inventory as JSON (false) --force always send data to server (false) --backend-collect-timeout=TIME timeout for inventory modules execution (30) + --full-inventory-postpone=NUM set number of possible full inventory postpone (14) =head2 Remote inventory task specific options diff --git a/contrib/unix/installer/Getopt.pm b/contrib/unix/installer/Getopt.pm index e6a037dcb..4b4a8df36 100644 --- a/contrib/unix/installer/Getopt.pm +++ b/contrib/unix/installer/Getopt.pm @@ -19,6 +19,7 @@ my @options = ( 'no-question|Q', 'extract=s', 'force', + 'full-inventory-postpone=i', 'help|h', 'install', 'list', @@ -128,6 +129,7 @@ glpi-agent-linux-installer [options] --scan-profiles set to scan user profiles (false) --backend-collect-timeout=TIME set timeout for inventory modules execution (30) -t --tag=TAG configure tag to define in inventories + --full-inventory-postpone=NUM set number of possible full inventory postpone (14) RemoteInventory specific options: --remote=REMOTE[,REMOTE]... list of remotes for remoteinventory task