From patchwork Mon Feb 12 18:05:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fff-web: UPGRADE_PATH in header should be taken from hood file From: Adrian Schmutzler X-Patchwork-Id: 784 Message-Id: <1518458709-58765-1-git-send-email-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Mon, 12 Feb 2018 19:05:09 +0100 Signed-off-by: Tim Niemeyer Signed-off-by: Adrian Schmutzler Reviewed-by: Christian Dresel --- src/packages/fff/fff-web/files/www/ssl/cgi-bin/header | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header index dbfb00a..d149c04 100755 --- a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header +++ b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header @@ -1,8 +1,11 @@ #!/usr/bin/haserl <% -. /etc/community.cfg +. /lib/functions/fff/keyxchange . /etc/firmware_release + +UPGRADE_PATH="$(getUpgradePath)" + echo -en "Content-Type: text/html\r\n\r\n" nav_entry() { script_file="/cgi-bin/$1"