cookutils diff lighttpd/index.cgi @ rev 1043
lighttpd/index.cgi: allow to define favicon in cook.conf
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 31 12:57:43 2018 +0300 (2018-03-31) |
parents | 25e91fd33194 |
children | 71d3999a3568 |
line diff
1.1 --- a/lighttpd/index.cgi Sat Mar 31 04:22:36 2018 +0300 1.2 +++ b/lighttpd/index.cgi Sat Mar 31 12:57:43 2018 +0300 1.3 @@ -93,6 +93,7 @@ 1.4 command="$(cat $command)" 1.5 [ -n "$command" ] && pretitle="$command - " 1.6 fi 1.7 + [ -z "$favicon" ] && favicon='/slitaz-cooker.png' 1.8 1.9 echo -e 'Content-Type: text/html; charset=UTF-8\n' 1.10 1.11 @@ -102,7 +103,7 @@ 1.12 <head> 1.13 <title>$pretitle$title</title> 1.14 <link rel="stylesheet" href="/$css"> 1.15 - <link rel="icon" type="image/png" href="/slitaz-cooker.png"> 1.16 + <link rel="icon" type="image/png" href="$favicon"> 1.17 <link rel="search" href="$base/os.xml" title="$title" type="application/opensearchdescription+xml"> 1.18 <!-- mobile --> 1.19 <meta name="viewport" content="width=device-width, initial-scale=1.0">