git://git.onelab.eu
/
plcrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c28b79b
)
check if the file exists before changing permission. need a better approach
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 21 Sep 2009 17:59:01 +0000
(17:59 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 21 Sep 2009 17:59:01 +0000
(17:59 +0000)
for these steps.
plcrt.spec
patch
|
blob
|
history
diff --git
a/plcrt.spec
b/plcrt.spec
index
c2fb0ff
..
ad1556a
100644
(file)
--- a/
plcrt.spec
+++ b/
plcrt.spec
@@
-52,7
+52,11
@@
install -D -m 755 getpersons.py $RPM_BUILD_ROOT/%{_datadir}/%{name}/getpersons.p
install -D -m 755 adduserstort.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/adduserstort.pl
echo " * Installing cron scripts"
-chmod 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}/cron.d/*.sh
+for file in $RPM_BUILD_ROOT/%{_datadir}/%{name}/cron.d/*.py $RPM_BUILD_ROOT/%{_datadir}/%{name}/cron.d/*.sh ; do
+ if [ -f $file ] ; then
+ chmod 755 $file
+ fi
+done
%clean
rm -rf $RPM_BUILD_ROOT