[-]
[+]
|
Changed |
_service:set_version:inventory-system.spec
|
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.rev1513.tar.bz2/client/inventory-system.conf
^
|
@@ -18,3 +18,10 @@
#
DEBUG="no"
#
+## Description: Enable custom functions from /etc/inventory-system.d
+## Type: string
+## Default: ""
+#
+CUSTOM_FUNCTIONS=""
+#
+
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.rev1513.tar.bz2/client/inventory-system.sh
^
|
@@ -285,6 +285,17 @@
REPLY="${decoded}" #+or echo the result (EASIER)... or both... :p
}
+
+# include custom functions
+if [ -d /etc/inventory-system.d ] ; then
+ for FILE in `${LS} -1A /etc/inventory-system.d/*.sh`
+ do
+ if [ -f ${FILE} ] ; then
+ . ${FILE}
+ fi
+ done
+fi
+
# build request
function build_request {
request=""
@@ -304,7 +315,8 @@
get_system_kernelversion \
get_system_arch \
get_system_os \
- get_system_software ; do
+ get_system_software \
+ ${CUSTOM_FUNCTIONS} ; do
request="${request}${VAR}="`rawurlencode "\`${VAR}\`"`
request="${request}&"
done
|