# HG changeset patch # User Christopher Rogers # Date 1305733605 0 # Node ID 12218dfc84f633aa39e189e1b751abf63eae8345 # Parent 39ff1035b44617f857fc8f0cc860cb3a63b855b9 local-mirror: Fixed website crond option. Check if bb.slitaz.org is used to add cook.slitaz.org to same line in /etc/hosts file. diff -r 39ff1035b446 -r 12218dfc84f6 initramfs/usr/bin/local-mirror --- a/initramfs/usr/bin/local-mirror Tue May 17 20:23:45 2011 +0000 +++ b/initramfs/usr/bin/local-mirror Wed May 18 15:46:45 2011 +0000 @@ -77,12 +77,10 @@ case "$b" in website) [ -d $REPOS_DIR/$b ] && ln -s $REPOS_DIR/$b $MAIN_WWW_DIR - if [ -f $MAIN_WWW_DIR/$b/libs/get-latest.sh ]; then - # run it here on first run - $MAIN_WWW_DIR/$b/libs/get-latest.sh - if [ ! $(grep -l "$MAIN_WWW_DIR/$b/libs/get-latest.sh" $CRON_FILE) ]; then + if [ -f $MAIN_WWW_DIR/$b/libs/get-feeds.sh ]; then + if [ ! $(grep -l "$MAIN_WWW_DIR/$b/libs/get-feeds.sh" $CRON_FILE) ]; then echo "#Update SliTaz stuff" >> $CRON_FILE - echo "*/20 * * * * $MAIN_WWW_DIR/$b/libs/get-latest.sh" >> $CRON_FILE + echo "*/20 * * * * $MAIN_WWW_DIR/$b/libs/get-feeds.sh" >> $CRON_FILE fi fi ;; @@ -321,6 +319,8 @@ for hostname in $ADDRESS; do if [ "$hostname" = "www.slitaz.org" ]; then echo "$IP_ADDR $hostname slitaz.org" >> /etc/hosts + elif [ "$hostname" = "bb.slitaz.org" ]; then + echo "$IP_ADDR $hostname cook.slitaz.org" >> /etc/hosts else echo "$IP_ADDR $hostname" >> /etc/hosts fi