userContent/configuration symlink should be in -common for two reasons:
- it's used by also by -sync instances.
- jobs/configuration file is in -common package
Change-Id: I986a142ce6cbdfa07f3d0a66dcad0c21950c0068
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
install -d %{buildroot}%{destdir}
cp -rf jobs/* %{buildroot}%{destdir}/
-%post
+%post common
if [ ! -d /var/lib/jenkins/userContent ]; then
mkdir -p /var/lib/jenkins/userContent
fi
ln -sf %{destdir}/configuration /var/lib/jenkins/userContent/configuration
-%postun
+%postun common
if [ -L /var/lib/jenkins/userContent/configuration ]; then
rm -f /var/lib/jenkins/userContent/configuration
fi