diff options
author | Richard Nelson <unixabg@gmail.com> | 2010-06-23 10:28:03 -0500 |
---|---|---|
committer | Richard Nelson <unixabg@gmail.com> | 2010-06-23 10:28:03 -0500 |
commit | 47a6440e2e66d25cf782fd97b9a418da06919572 (patch) | |
tree | e014be402a915d85d4c342cb9c9bd525a1317952 | |
parent | 804d0b2030c0456dd5dcc9e701a1882ec43c9618 (diff) | |
download | vyos-live-build-47a6440e2e66d25cf782fd97b9a418da06919572.tar.gz vyos-live-build-47a6440e2e66d25cf782fd97b9a418da06919572.zip |
Removed username from forms and cgi and can be configured with live-config.username= on bootappend.
-rwxr-xr-x | cgi/cgi | 5 | ||||
-rw-r--r-- | templates/cgi/debian-official/build.html | 1 | ||||
-rw-r--r-- | templates/cgi/debian-official/form.html | 4 | ||||
-rw-r--r-- | templates/cgi/debian-unofficial/build.html | 1 | ||||
-rw-r--r-- | templates/cgi/debian-unofficial/form.html | 4 |
5 files changed, 1 insertions, 14 deletions
@@ -91,7 +91,6 @@ else LH_MEMTEST=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])memtest=[0-9a-z+]+' | cut -f 2 -d '=' | head -n1) LH_NET_ROOT_PATH=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])net_path=[-0-9a-zA-Z._/]+' | cut -f 2 -d '=' | head -n1) LH_NET_ROOT_SERVER=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])net_server=[0-9.]+' | cut -f 2 -d '=' | head -n1) - LH_USERNAME=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])username=[-0-9a-zA-Z.]+' | cut -f 2 -d '=' | head -n1) # Advanced source options LH_SOURCE=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])source=[a-z]+' | cut -f 2 -d '=' | head -n1) @@ -154,7 +153,6 @@ else -e "s#LH_NET_ROOT_PATH#${LH_NET_ROOT_PATH}#" \ -e "s/LH_NET_ROOT_SERVER/${LH_NET_ROOT_SERVER}/" \ -e "s#SERVER#${_SERVER}#g" \ - -e "s/LH_USERNAME/${LH_USERNAME}/" \ -e "s/LH_SOURCE_IMAGES/${LH_SOURCE_IMAGES}/" \ -e "s/LH_SOURCE/${LH_SOURCE}/" \ -e "s#CUSTOM_BOOTSTRAP#${_CUSTOM_BOOTSTRAP}#" \ @@ -205,7 +203,6 @@ LH_ISO_VOLUME="${LH_ISO_VOLUME}" LH_MEMTEST="${LH_MEMTEST}" LH_NET_ROOT_PATH="${LH_NET_ROOT_PATH}" LH_NET_ROOT_SERVER="${LH_NET_ROOT_SERVER}" -LH_USERNAME="${LH_USERNAME}" # Advanced source options LH_SOURCE_IMAGES="${LH_SOURCE_IMAGES}" @@ -220,7 +217,7 @@ 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: 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 ${LH_BOOTAPPEND}|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}|username ${LH_USERNAME}|source_images ${LH_SOURCE_IMAGES}|source ${LH_SOURCE}|custom_bootstrap ${_CUSTOM_BOOTSTRAP}|custom_binary ${_CUSTOM_BINARY}\n" >> /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 ${LH_BOOTAPPEND}|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 sed -e "s/VERSION/${VERSION}/" "${_TEMPLATES}"/footer.html diff --git a/templates/cgi/debian-official/build.html b/templates/cgi/debian-official/build.html index e0f326674..369b764ab 100644 --- a/templates/cgi/debian-official/build.html +++ b/templates/cgi/debian-official/build.html @@ -54,7 +54,6 @@ <tr><td>--memtest: </td><td>LH_MEMTEST</td></tr> <tr><td>--net-path: </td><td>LH_NET_ROOT_PATH</td></tr> <tr><td>--net-server: </td><td>LH_NET_ROOT_SERVER</td></tr> - <tr><td>--username: </td><td>LH_USERNAME</td></tr> </table> <b>Advanced source options</b> diff --git a/templates/cgi/debian-official/form.html b/templates/cgi/debian-official/form.html index 85138b26d..6facc1cef 100644 --- a/templates/cgi/debian-official/form.html +++ b/templates/cgi/debian-official/form.html @@ -282,10 +282,6 @@ <td><input id="Net_Server" name="net_server" maxlength="15" size="50" type="text" value="192.168.1.1" /></td> </tr> <!-- LIVE_SYSLINUX_SPLASH --> - <tr> - <td><label for="Username">--username:</label> </td> - <td><input id="Username" name="username" maxlength="128" size="50" type="text" value="user" /></td> - </tr> </table> </div> diff --git a/templates/cgi/debian-unofficial/build.html b/templates/cgi/debian-unofficial/build.html index 78d7bc6d3..78c4309f3 100644 --- a/templates/cgi/debian-unofficial/build.html +++ b/templates/cgi/debian-unofficial/build.html @@ -54,7 +54,6 @@ <tr><td>--memtest: </td><td>LH_MEMTEST</td></tr> <tr><td>--net-path: </td><td>LH_NET_ROOT_PATH</td></tr> <tr><td>--net-server: </td><td>LH_NET_ROOT_SERVER</td></tr> - <tr><td>--username: </td><td>LH_USERNAME</td></tr> </table> <b>Advanced source options</b> diff --git a/templates/cgi/debian-unofficial/form.html b/templates/cgi/debian-unofficial/form.html index ecf155865..e3bc4dc3a 100644 --- a/templates/cgi/debian-unofficial/form.html +++ b/templates/cgi/debian-unofficial/form.html @@ -281,10 +281,6 @@ <td><input id="Net_Server" name="net_server" maxlength="15" size="50" type="text" value="192.168.1.1" /></td> </tr> <!-- LIVE_SYSLINUX_SPLASH --> - <tr> - <td><label for="Username">--username:</label> </td> - <td><input id="Username" name="username" maxlength="128" size="50" type="text" value="user" /></td> - </tr> </table> </div> |