#!/bin/sh set -e # main [ "$1" = "pre-cpkg" ] || exit 0 # read vars VAR_LIST="PROXY_HOST PROXY_HTTP_PORT" eval `/usr/sbin/llxcfg-showvars ${VAR_LIST}` # calculate vars if [ "$PROXY_HOST" -a "$PROXY_HTTP_PORT" ] ; then llxcfg-systemvars add GUARD_IMG_URL="http://${PROXY_HOST}:${PROXY_HTTP_PORT}/img/" else llxcfg-systemvars del GUARD_IMG_URL fi exit 0