The gentoo-rsync-portage.sh script from gentoo-rsync-mirror-1.0-r2 fails if it is called with complete path (as /opt/gentoo-rsync/gentoo-rsync-portage.sh) because of the missing logfile /var/log//opt/gentoo-rsync/gentoo-rsync-portage.sh. (Initialy i called the script directly from the directory, thus it exists only a log file /var/log/gentoo-rsync-portage.sh) Reproducible: Always Steps to Reproduce: 1. execute gentoo-rsync-portage.sh initaly directly from its directory 2. call the script with complete path (e.g. from cron) 3. Actual Results: The sync fails, because of the non-existing log file. Expected Results: It should sync :-) I propose to replace the "$0" in the lines 11, 13 and 15 with "`basename $0`. E.g.: -echo "Started update at" `date` >> /var/log/$0.log 2>&1 +echo "Started update at" `date` >> /var/log/`basename $0`.log 2>&1
Doing the changes you suggested. Seems like i overlooked that.
Changes completed and commited. Thanks for your help!