Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
0b708ca1
Commit
0b708ca1
authored
Mar 09, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmpub: set permissions to hardlinked previous tree
parent
d9f6b951
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
rpmpub
bin/rpmpub
+9
-2
No files found.
bin/rpmpub
View file @
0b708ca1
...
...
@@ -75,8 +75,15 @@ export ETERDESTSRPM
PREVPATH
=
$(
readlink
-m
"
$ETERDESTSRPM
/../../last"
)
if
[
-n
"
$ALPHA
"
]
&&
[
!
-d
"
$ETERDESTSRPM
"
]
&&
[
-d
"
$PREVPATH
"
]
;
then
echo
"Copying previous target tree from
$PREVPATH
"
docmd
cp
-alv
$PREVPATH
$(
readlink
-m
"
$ETERDESTSRPM
/.."
)
NEXTPATH
=
$(
readlink
-m
"
$ETERDESTSRPM
/.."
)
echo
"Copying previous target tree from
$PREVPATH
to
$NEXTPATH
"
docmd
cp
-alv
$PREVPATH
$NEXTPATH
echo
"Fix permissions and group..."
NAME_GR
=
$(
stat
-c
"%G"
$PREVPATH
)
[
-n
"
$NAME_GR
"
]
||
fatal
"Can't get group for
$PREVPATH
"
find
-H
"
$NEXTPATH
"
!
-group
"
$NAME_GR
"
-print0
| xargs
-0
--no-run-if-empty
chgrp
-v
$NAME_GR
find
-H
"
$NEXTPATH
"
!
-perm
0664
-type
f
-print0
| xargs
-0
--no-run-if-empty
chmod
-v
0664
find
-H
"
$NEXTPATH
"
!
-perm
02775
-type
d
-print0
| xargs
-0
--no-run-if-empty
chmod
-v
02775
fi
# just for your information: rpmbs supports ssh-like target
...
...
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