slitaz-modular rev 144
local-mirror: Copy tank files so makegraphs will work when home boot option is used.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Nov 11 07:38:12 2011 +0000 (2011-11-11) |
parents | b57ada53a816 |
children | 82ef65096a7e |
files | initramfs/usr/bin/local-mirror |
line diff
1.1 --- a/initramfs/usr/bin/local-mirror Fri Oct 14 05:52:47 2011 +0000 1.2 +++ b/initramfs/usr/bin/local-mirror Fri Nov 11 07:38:12 2011 +0000 1.3 @@ -18,9 +18,9 @@ 1.4 1.5 #[ -d /mnt/live/memory/mirror/packages ] && PKGDIR="/mnt/live/memory/mirror/packages" 1.6 #[ -d /mnt/live/memory/mirror/src ] && SRCDIR="/mnt/live/memory/mirror/src" 1.7 -sync_mirror=$(find /mnt/live -name "mirror" -type d -maxdepth 3 | head -1) 1.8 +sync_mirror=$(find /mnt/live -maxdepth 3 -name "mirror" -type d | head -1) 1.9 1.10 -COOKORDER="$(find /mnt/live/mnt/* -name "cookorder.list" -maxdepth 1)" 1.11 +COOKORDER="$(find /mnt/live/mnt/* -maxdepth 1 -name "cookorder.list")" 1.12 CUR_PWD="$PWD" 1.13 version="$(cat /etc/slitaz-release)" 1.14 1.15 @@ -238,7 +238,7 @@ 1.16 #[ -d $REPOS_DIR/website/pics ] && ln -sf $REPOS_DIR/website/images $MAIN_WWW_DIR/$b/images 1.17 ;; 1.18 tank) 1.19 - [ -d $TANK_WWW_DIR ] && ln -sf $TANK_WWW_DIR $MAIN_WWW_DIR/$b 1.20 + [ -d $TANK_WWW_DIR ] && cp -a $TANK_WWW_DIR $MAIN_WWW_DIR/$b 1.21 [ -f /usr/share/awstats/extras/update ] && ln -sf /usr/share/awstats/extras/update /usr/sbin/awsupdate_all 1.22 [ -d $REPOS_DIR/slitaz-forge/$b/files/etc/awstats ] && cp -a $REPOS_DIR/slitaz-forge/$b/files/etc/awstats/* /etc/awstats 1.23 for i in $ADDRESS; do 1.24 @@ -412,7 +412,7 @@ 1.25 fi 1.26 done 1.27 if [ ! -L /usr/share/awstats/icon/other/slitaz-spider-48x48.png ]; then 1.28 - ln -s /repos/website/images/artwork/slitaz-spider-48x48.png /usr/share/awstats/icon/other/slitaz-spider-48x48.png 1.29 + ln -s $REPOS_DIR/website/images/artwork/slitaz-spider-48x48.png /usr/share/awstats/icon/other/slitaz-spider-48x48.png 1.30 fi 1.31 if [ "$IP_ADDR" != "127.0.0.1" ]; then 1.32 if [ ! $(grep -l "dhcp-option=option:router,$ROUTER_IP" /etc/dnsmasq.conf) ]; then