tazpkg view update-tazpkg.sh @ rev 764
pkgs.cgi: non root support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 06 18:21:06 2015 +0200 (2015-04-06) |
parents | |
children |
line source
1 mkdir -p /usr/lib/tazpkg
2 # /usr/lib/slitaz ?
4 for i in \
5 tazpkg tazpkg-box tazpkg-notify \
6 modules/tazpkg-convert modules/tazpkg-find-depends \
7 tazpanel/pkgs.cgi tazpanel/pkgs ;
8 do
9 fi=$(basename $i)
10 case $i in
11 tazpanel/pkgs.cgi) DIR=/var/www/tazpanel ;;
12 tazpanel/pkgs) DIR=/var/www/tazpanel/menu.d ;;
13 modules/*) DIR=/usr/lib/tazpkg ;;
14 *) DIR=/usr/bin ;;
15 esac
16 [ -f "$DIR/$fi" ] && rm $DIR/$fi
17 wget -P $DIR hg.slitaz.org/tazpkg/raw-file/tip/$i
18 chmod +x $DIR/$fi
19 done