slitaz-modular rev 160
local-mirror: Add piratebox website support.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 24 04:50:04 2012 -0500 (2012-01-24) |
parents | f284d07509d6 |
children | 1faf54d48fc1 |
files | initramfs/usr/bin/local-mirror |
line diff
1.1 --- a/initramfs/usr/bin/local-mirror Thu Jan 12 19:07:11 2012 +0000 1.2 +++ b/initramfs/usr/bin/local-mirror Tue Jan 24 04:50:04 2012 -0500 1.3 @@ -91,6 +91,9 @@ 1.4 1.5 case "$b" in 1.6 website) 1.7 + cd $REPOS_DIR/$b 1.8 + hg update testing 1.9 + cd $CUR_DIR 1.10 [ -d $REPOS_DIR/$b ] && ln -s $REPOS_DIR/$b $MAIN_WWW_DIR 1.11 if [ -f $MAIN_WWW_DIR/$b/libs/get-feeds.sh ]; then 1.12 if [ ! $(grep -l "$MAIN_WWW_DIR/$b/libs/get-feeds.sh" $CRON_FILE) ]; then 1.13 @@ -310,6 +313,21 @@ 1.14 # [ -d $MAIN_WWW_DIR/gimp_es ] || ln -sf /usr/share/gimp/2.0/help/es $MAIN_WWW_DIR/gimp_es 1.15 #fi ;; 1.16 fake-website /usr/share/gimp/2.0/help/es gimp.es.slitaz.org ;; 1.17 + piratebox) 1.18 + cd $REPOS_DIR/piratebox 1.19 + hg update lighttpd 1.20 + cd $CUR_PWD 1.21 + if [ -d $REPOS_DIR/piratebox/piratebox/www ]; then 1.22 + cp -a $REPOS_DIR/piratebox/piratebox/www $MAIN_WWW_DIR/piratebox 1.23 + fi 1.24 + if [ -f $MAIN_WWW_DIR/piratebox/cgi-bin/data.pso ]; then 1.25 + chmod -R 777 $MAIN_WWW_DIR/piratebox/cgi-bin/data.pso 1.26 + fi 1.27 + if [ ! -d $MAIN_WWW_DIR/piratebox/share ]; then 1.28 + mkdir -p $MAIN_WWW_DIR/piratebox/share 1.29 + chmod -R 777 $MAIN_WWW_DIR/piratebox/share 1.30 + fi 1.31 + ;; 1.32 linuxgazette) 1.33 #if [ -d /repos/linuxgazette ]; then 1.34 # [ -d $MAIN_WWW_DIR/linuxgazette ] || ln -sf /repos/linuxgazette $MAIN_WWW_DIR/linuxgazette