slitaz-dev-tools rev 143

rolling.sh: fix group owner
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 24 13:12:07 2012 +0100 (2012-02-24)
parents a646c0b4d8ef
children 29072e1a71a9
files mirror-tools/rootfs/usr/bin/rolling.sh
line diff
     1.1 --- a/mirror-tools/rootfs/usr/bin/rolling.sh	Tue Feb 14 11:50:43 2012 +0100
     1.2 +++ b/mirror-tools/rootfs/usr/bin/rolling.sh	Fri Feb 24 13:12:07 2012 +0100
     1.3 @@ -14,6 +14,7 @@
     1.4  echo -e "<html>\n<body>\n<pre>"
     1.5  dos2unix | sed -e 's|\(Filesystem size:\).*G\([0-9\.]*M\) *$|\1 \2|' \
     1.6      -e 's|.\[1m|<b>|' -e 's|.\[0m|</b>|' -e 's|.\[[0-9Gm;]*||g' \
     1.7 +    -e 's|#.*|<i><span style="color: blue">&</span></i>|' \
     1.8      -e ':a;s/^\(.\{1,68\}\)\(\[ [A-Za-z]* \]\)/\1 \2/;ta' \
     1.9      -e 's#\[ OK \]#[ <span style="color: green">OK</span> ]#' \
    1.10      -e 's#\[ Failed \]#[ <span style="color: red">Failed</span> ]#'
    1.11 @@ -29,16 +30,18 @@
    1.12  	TMP=$rolling/tmp$$
    1.13  	mkdir -p $TMP/iso $TMP/fs/var/lib/tazpkg $TMP/fs/home/slitaz/cooking \
    1.14  		 $TMP/fs/var/cache/tazpkg/cooking/packages
    1.15 +	chown -R root.root $TMP
    1.16 +	chmod -R 755 $TMP
    1.17 +	mount -o loop,ro $system $TMP/iso
    1.18 +	for i in $(ls -r $TMP/iso/boot/rootfs*.gz) ; do
    1.19 +		unlzma -c $i | ( cd $TMP/fs ; cpio -idmu )
    1.20 +	done
    1.21  	mount --bind $packages $TMP/fs/var/cache/tazpkg/cooking/packages
    1.22  	ln -s /var/cache/tazpkg/cooking/packages $TMP/fs/home/slitaz/cooking
    1.23  	# 3.0 compatibility...
    1.24  	ln -s cooking/packages $TMP/fs/home/slitaz/packages
    1.25  	cp -a $packages/packages.* $TMP/fs/var/lib/tazpkg
    1.26  	cp $packages/$flavor.flavor $TMP/fs
    1.27 -	mount -o loop,ro $system $TMP/iso
    1.28 -	for i in $TMP/iso/boot/rootfs*.gz ; do
    1.29 -		unlzma -c $i | ( cd $TMP/fs ; cpio -id )
    1.30 -	done
    1.31  	[ -d $rolling/fixes ] && cp -a $rolling/fixes/. $TMP/fs/.
    1.32  	echo "cooking" > $TMP/fs/etc/slitaz-release
    1.33  	umount -d $TMP/iso
    1.34 @@ -83,7 +86,9 @@
    1.35  	rm -rf $TMP
    1.36      fi
    1.37      export DROPBEAR_PASSWORD=none
    1.38 -    SSH="dbclient -p 222 -i /home/bellard/.ssh/id_rsa.dropbear"
    1.39 -    rsync --bwlimit=40 -vtP -e "$SSH" $rolling/slitaz-$flavor.* \
    1.40 +    SSH="dbclient -i /home/bellard/.ssh/id_rsa.dropbear"
    1.41 +    #BWLIMIT="--bwlimit=40"
    1.42 +    BWLIMIT=""
    1.43 +    rsync $BWLIMIT -vtP -e "$SSH" $rolling/slitaz-$flavor.* \
    1.44  	bellard@mirror.slitaz.org:/var/www/slitaz/mirror/iso/rolling
    1.45  done