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
f0e29390
Commit
f0e29390
authored
Nov 24, 2019
by
Downloader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsync_all.sh: drop LOGFILE//dev/stdout using
parent
6d44bac2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
rsync_all.sh
etersoft-cron/rsync_all.sh
+4
-15
No files found.
etersoft-cron/rsync_all.sh
View file @
f0e29390
...
...
@@ -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
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