Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
103db632
Commit
103db632
authored
Jul 11, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve rsync_all.sh
parent
85cabeaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
rsync_all.sh
etersoft-cron/rsync_all.sh
+20
-3
No files found.
etersoft-cron/rsync_all.sh
View file @
103db632
...
...
@@ -9,9 +9,25 @@
# Подключаем конфигурационные параметры
#. ./scripts/config.sh
LOGFILE
=
$(
realpath
-e
$0
)
.log
LOGFILE
=
/dev/stdout
FORCE
=
''
if
[
"
$1
"
=
"--force"
]
;
then
FORCE
=
"
$1
"
shift
fi
CP
=
$(
cat
$TMPDIR
/rsync_pid 2>/dev/null
)
if
[
-n
"
$CP
"
]
&&
[
-d
"/proc/
$CP
"
]
;
then
echo
"Run conflicts with
$CP
"
>>
$LOGFILE
date
>>
$LOGFILE
[
-n
"
$FORCE
"
]
||
exit
fi
echo
"
$$
"
>
$TMPDIR
/rsync_pid
#LOGFILE=$(realpath -e $0).log
date
>
$LOGFILE
exec
>>
$LOGFILE
# output stdout to file
#exec >> $LOGFILE
...
...
@@ -145,7 +161,8 @@ for i in Sisyphus ; do
sync_branches
$i
done
date
>
$LOGFILE
date
>>
$LOGFILE
rm
-f
$TMPDIR
/rsync_pid
# for update x86_32
#$RPMS/arepo.sh > $RPMS/arepo.log
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment