Changes of Revision 39
[-] | Changed | _service:set_version:inventory-system.spec |
1
2 %define pkgname inventory-system 3 Name: inventory-system 4 Release: 0 5 -Version: 0.0.rev1511 6 +Version: 0.0.rev1513 7 Url: http://www.linux-administrator.com/ 8 License: GPLv2 9 Group: System 10 |
||
[+] | 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 |