tazpkg diff update-tazpkg.sh @ rev 768

pkgs.cgi: do not hide buttons and menu items, just disable them.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 07 00:29:37 2015 +0300 (2015-04-07)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/update-tazpkg.sh	Tue Apr 07 00:29:37 2015 +0300
     1.3 @@ -0,0 +1,19 @@
     1.4 +mkdir -p /usr/lib/tazpkg
     1.5 +# /usr/lib/slitaz ?
     1.6 +
     1.7 +for i in \
     1.8 +	tazpkg tazpkg-box tazpkg-notify \
     1.9 +	modules/tazpkg-convert modules/tazpkg-find-depends \
    1.10 +	tazpanel/pkgs.cgi tazpanel/pkgs ;
    1.11 +do
    1.12 +	fi=$(basename $i)
    1.13 +	case $i in
    1.14 +		tazpanel/pkgs.cgi) DIR=/var/www/tazpanel ;;
    1.15 +		tazpanel/pkgs)	DIR=/var/www/tazpanel/menu.d ;;
    1.16 +		modules/*)	DIR=/usr/lib/tazpkg ;;
    1.17 +		*) DIR=/usr/bin ;;
    1.18 +	esac
    1.19 +	[ -f "$DIR/$fi" ] && rm $DIR/$fi
    1.20 +	wget -P $DIR hg.slitaz.org/tazpkg/raw-file/tip/$i
    1.21 +	chmod +x $DIR/$fi
    1.22 +done