Commit f0e29390 authored by Downloader's avatar Downloader

rsync_all.sh: drop LOGFILE//dev/stdout using

parent 6d44bac2
......@@ -9,8 +9,6 @@
# Подключаем конфигурационные параметры
#. ./scripts/config.sh
LOGFILE=/dev/stdout
FORCE=''
if [ "$1" = "--force" ] ; then
FORCE="$1"
......@@ -19,20 +17,14 @@ fi
CP=$(cat $TMPDIR/rsync_pid 2>/dev/null)
if [ -n "$CP" ] && [ -d "/proc/$CP" ] ; then
echo "Run conflicts with $CP" >> $LOGFILE
date >> $LOGFILE
echo "Run conflicts with $CP"
date
[ -n "$FORCE" ] || exit
fi
echo "$$" >$TMPDIR/rsync_pid
#LOGFILE=$(realpath -e $0).log
date > $LOGFILE
# output stdout to file
#exec >> $LOGFILE
# print stderr to screen and to file
#exec 2> >(tee -a $LOGFILE >&2)
date
get_rsync_path()
{
......@@ -177,8 +169,5 @@ for i in Sisyphus ; do
sync_branches $i
done
date >> $LOGFILE
date
rm -f $TMPDIR/rsync_pid
# for update x86_32
#$RPMS/arepo.sh > $RPMS/arepo.log
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment