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
56f434f1
You need to sign in or sign up before continuing.
Commit
56f434f1
authored
Nov 24, 2019
by
Downloader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsync_all.sh: move params to the begin of the script
parent
f0e29390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
rsync_all.sh
etersoft-cron/rsync_all.sh
+8
-12
No files found.
etersoft-cron/rsync_all.sh
View file @
56f434f1
#!/bin/bash
# Written by Lav (c) 2001, 2002, 2003, 2004, 2008, 2016, 2019
# Vitaly Lipatov <lav@etersoft.ru>
# 24.12.01, 16.11.03, 30.12.03, 17.12.04
# Обновление Сизифа
# Анализировать код возврата rsync, и если вышел не по ошибке, а все закачал, то запускать с
# Углубленным списком.
# Подключаем конфигурационные параметры
#. ./scripts/config.sh
RPMS
=
/var/ftp/pub/ALTLinux
TIMEOUT
=
5000
LISTARCH
=
"x86_64 noarch i586 x86_64-i586"
BRANCHLIST
=
"c7 c8 p8 p9"
DELETE
=
"--delete-after --delete-excluded --max-delete=1000"
FORCE
=
''
if
[
"
$1
"
=
"--force"
]
;
then
...
...
@@ -42,11 +43,6 @@ fi
echo
"
$RSYNCPATH
"
}
RPMS
=
/var/ftp/pub/ALTLinux
TIMEOUT
=
5000
LISTARCH
=
"x86_64 noarch i586 x86_64-i586"
DELETE
=
"--delete-after --delete-excluded --max-delete=1000"
func
()
{
...
...
@@ -159,7 +155,7 @@ elif [ -n "$1" ] ; then
exit
fi
for
i
in
c7 c8 p8 p9
;
do
for
i
in
$BRANCHLIST
;
do
sync_branches
$i
/branch
done
...
...
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