* sync: fixed the issue that occurs only when sync script is run by third

parties such as crontab.
This commit is contained in:
Alper Kanat 2008-11-06 01:24:32 +00:00
parent e9330d5bc4
commit 42e8afecd8

3
sync
View File

@ -81,6 +81,9 @@ if [[ -f "$PLANET_DIR/$LOCK_FILE" ]]; then
exit 1
else
touch "$PLANET_DIR/$LOCK_FILE"
cd "$PLANET_DIR"
if (( $VERBOSE == 0 )); then
echo >> "$LOG_DIR/$LOG_FILE" 2>&1
echo "starting new sync ($(date +"%d.%m.%Y, %H:%M"))" >> "$LOG_DIR/$LOG_FILE" 2>&1