sup rev 31
Small fix to path in sup.cgi
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 27 23:01:43 2017 +0100 (2017-02-27) |
parents | cf6506c8f9ad |
children | 7f0dd18bdb66 |
files | server/sup/sup.cgi sup |
line diff
1.1 --- a/server/sup/sup.cgi Mon Feb 27 22:50:53 2017 +0100 1.2 +++ b/server/sup/sup.cgi Mon Feb 27 23:01:43 2017 +0100 1.3 @@ -18,10 +18,10 @@ 1.4 . /usr/lib/slitaz/httphelper.sh 1.5 fi 1.6 1.7 -#host="http://scn.slitaz.org/" 1.8 -#scn="/home/slitaz/www/scn" 1.9 -host="http://localhost/~pankso/cgi-bin/scn/" 1.10 -scn="/home/pankso/Public/cgi-bin/scn" 1.11 +host="http://scn.slitaz.org/" 1.12 +scn="/home/slitaz/www/scn" 1.13 +#host="http://localhost/~pankso/cgi-bin/scn/" 1.14 +#scn="/home/pankso/Public/cgi-bin/scn" 1.15 1.16 supdb="$content/sup" 1.17 wok="$supdb/wok"
2.1 --- a/sup Mon Feb 27 22:50:53 2017 +0100 2.2 +++ b/sup Mon Feb 27 23:01:43 2017 +0100 2.3 @@ -238,9 +238,11 @@ 2.4 separator 2.5 2.6 # Skip HTTP/1.1 404 Not Found: 2>/dev/null 2.7 - if ! wget --spider -q ${mirror}/${pkgsdb} 2>/dev/null; then 2.8 - gettext "Mirror is unreachable"; echo 2.9 + if ! wget --spider -q ${mirror}/packages.sql 2>/dev/null; then 2.10 + gettext "Mirror is unreachable"; newline 2.11 fi 2.12 + rm -f ${pkgsdb} 2.13 + wget 2.14 2.15 newline ;; 2.16