summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2010-07-03 22:16:07 -0500
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:13 +0100
commit904cf4d54613e7d4f8076390bcc4a7e499fdb59e (patch)
treebead3b84ea61861c585bae4629cadbef79486702
parent0d33caf4c4223cb6d6058b4b1d9f021cca7254da (diff)
downloadlive-build-904cf4d54613e7d4f8076390bcc4a7e499fdb59e.zip
live-build-904cf4d54613e7d4f8076390bcc4a7e499fdb59e.tar.gz
Added REMOTE_ADDR to l-h.cgi log file.
-rwxr-xr-xcgi/cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi/cgi b/cgi/cgi
index 1e127b8..3153a27 100755
--- a/cgi/cgi
+++ b/cgi/cgi
@@ -175,6 +175,8 @@ cat > "${_TEMPDIR}"/"${_BUILD}".build << EOF
_BUILD="${_BUILD}"
_EMAIL="${_EMAIL}"
+REMOTE_ADDR="${REMOTE_ADDR}"
+
# Standard options
LH_BINARY_IMAGES="${LH_BINARY_IMAGES}"
LH_DISTRIBUTION="${LH_DISTRIBUTION}"
@@ -222,7 +224,7 @@ _CUSTOM_BINARY="${_CUSTOM_BINARY}"
LH_REPOSITORIES="${LH_REPOSITORIES}"
EOF
- echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper.cgi: add web build (${_BUILD})." >> /var/log/live
+ echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper.cgi: add web build (${_BUILD}) from ${REMOTE_ADDR}." >> /var/log/live
echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper.cgi: options ${_BUILD} |email ${_EMAIL}|binary_images ${LH_BINARY_IMAGES}|distribution ${LH_DISTRIBUTION}|packages_lists ${LH_PACKAGES_LISTS}|packages ${LH_PACKAGES}|architecture ${LH_ARCHITECTURE}|mirror_bootstrap_security ${LH_MIRROR_BOOTSTRAP}|mirror_bootstrap ${LH_MIRROR_BOOTSTRAP}|mirror_binary_security ${LH_MIRROR_BINARY_SECURITY}|mirror_binary ${LH_MIRROR_BINARY}|archive_areas ${LH_ARCHIVE_AREAS}|chroot_filesystem ${LH_CHROOT_FILESYSTEM}|linux_flavours ${LH_LINUX_FLAVOURS}|security ${LH_SECURITY}|symlinks ${LH_SYMLINKS}|sysvinit ${LH_SYSVINIT}|binary_indices ${LH_BINARY_INDICES}|bootappend_install ${LH_BOOTAPPEND_INSTALL}|bootappend_live ${LH_BOOTAPPEND_LIVE}|bootloader ${LH_BOOTLOADER}|debian_installer ${LH_DEBIAN_INSTALLER}|encryption ${LH_ENCRYPTION}|iso_application ${LH_ISO_APPLICATION}|iso_preparer ${LH_ISO_PREPARER}|iso_publisher ${LH_ISO_PUBLISHER}|iso_volume ${LH_ISO_VOLUME}|memtest ${LH_MEMTEST}|net_path ${LH_NET_ROOT_PATH}|net_server ${LH_NET_ROOT_SERVER}|source_images ${LH_SOURCE_IMAGES}|source ${LH_SOURCE}|custom_bootstrap ${_CUSTOM_BOOTSTRAP}|custom_binary ${_CUSTOM_BINARY}\n" >> /var/log/live
fi