cookutils rev 275
cooker.cgi: add home link
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:09:40 2011 +0100 (2011-12-25) |
parents | a3dfd81ec91f |
children | d9880aa3f3e5 |
files | web/cooker.cgi |
line diff
1.1 --- a/web/cooker.cgi Fri Dec 23 15:32:52 2011 +0100 1.2 +++ b/web/cooker.cgi Sun Dec 25 15:09:40 2011 +0100 1.3 @@ -108,6 +108,10 @@ 1.4 echo '<div id="info">' 1.5 if [ -f "$wok/$pkg/receipt" ]; then 1.6 echo "<a href='cooker.cgi?receipt=$pkg'>receipt</a>" 1.7 + unset WEB_SITE 1.8 + . $wok/$pkg/receipt 1.9 + [ -n "$WEB_SITE" ] && busybox wget -s $WEB_SITE && 1.10 + echo "<a href='$WEB_SITE'>home</a>" 1.11 else 1.12 echo "No package named: $pkg" 1.13 fi