projects
/
services
/
jenkins-jobs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70dc375
)
Only delete symlink when uninstall package
author
Lin Yang
<lin.a.yang@intel.com>
Fri, 15 Nov 2013 04:00:12 +0000
(12:00 +0800)
committer
Lin Yang
<lin.a.yang@intel.com>
Fri, 15 Nov 2013 04:00:12 +0000
(12:00 +0800)
Change-Id: I89abe444318c5743f71ffd38dcf421ce2817ae59
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
packaging/jenkins-jobs.spec
patch
|
blob
|
history
diff --git
a/packaging/jenkins-jobs.spec
b/packaging/jenkins-jobs.spec
index
dac67fb
..
22b2ad5
100644
(file)
--- a/
packaging/jenkins-jobs.spec
+++ b/
packaging/jenkins-jobs.spec
@@
-54,8
+54,10
@@
fi
ln -sf %{destdir}/configuration /var/lib/jenkins/userContent/
%postun common
-if [ -L /var/lib/jenkins/userContent/configuration ]; then
- rm -f /var/lib/jenkins/userContent/configuration
+if [ ${1:-0} -eq 0 ]; then
+ if [ -L /var/lib/jenkins/userContent/configuration ]; then
+ rm -f /var/lib/jenkins/userContent/configuration
+ fi
fi
%files