# HG changeset patch # User Christophe Lincoln # Date 1488235442 -3600 # Node ID 7f0dd18bdb669be3046430537f833601f9414d75 # Parent cfbb082f19f20155c3cb1ce33316bd1b383b87a3 Server return packages.sql md5sum diff -r cfbb082f19f2 -r 7f0dd18bdb66 server/sup/paths.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/sup/paths.conf Mon Feb 27 23:44:02 2017 +0100 @@ -0,0 +1,2 @@ +host="http://scn.slitaz.org/" +scn="/home/slitaz/www/scn" diff -r cfbb082f19f2 -r 7f0dd18bdb66 server/sup/sup.cgi --- a/server/sup/sup.cgi Mon Feb 27 23:01:43 2017 +0100 +++ b/server/sup/sup.cgi Mon Feb 27 23:44:02 2017 +0100 @@ -16,12 +16,13 @@ if [ "$(basename $0)" == "sup.cgi" ]; then . /lib/libtaz.sh . /usr/lib/slitaz/httphelper.sh + . paths.conf fi -host="http://scn.slitaz.org/" -scn="/home/slitaz/www/scn" -#host="http://localhost/~pankso/cgi-bin/scn/" -#scn="/home/pankso/Public/cgi-bin/scn" +# Custom paths.conf for easier development /avois commit this file +# with wrong paths like Pankso does! Full paths are needed for upload +# to work properly. +[ -f "${plugins}/sup/paths.conf" ] && . ${plugins}/sup/paths.conf supdb="$content/sup" wok="$supdb/wok" @@ -257,6 +258,10 @@ " rm -rf ${cache} $(dirname $tmpfile) && exit 0 ;; + + *\ dbsum\ *) + # Used by client to check for newer packages.sql + md5sum ${pkgsdb} | awk '{printf $1}'; exit 0 ;; *\ admin\ *|*\ db\ *) . ${plugins}/sup/sup-admin.cgi ;;