summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/vespa.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 38cc4bef791..b84084c82f8 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -551,7 +551,6 @@ cp %{buildroot}/%{_prefix}/etc/systemd/system/vespa-configserver.service %{build
%endif
ln -s /usr/lib/jvm/jre-17-openjdk %{buildroot}/%{_prefix}/jdk
-ln -s %{_prefix}/var/tmp %{buildroot}/%{_prefix}/tmp
%clean
rm -rf $RPM_BUILD_ROOT
@@ -587,6 +586,10 @@ exit 0
%systemd_postun_with_restart vespa-configserver.service
%endif
+%post base
+
+ln -s %{_prefix}/var/tmp %{buildroot}/%{_prefix}/tmp
+
%postun base
if [ $1 -eq 0 ]; then # this is an uninstallation
rm -f /etc/profile.d/vespa.sh
@@ -604,6 +607,10 @@ then
mv %{_prefix}/conf/vespa/default-env.txt.rpmsave %{_prefix}/conf/vespa/default-env.txt
fi
fi
+if test -L rm %{_prefix}/tmp
+then
+ rm -f %{_prefix}/tmp
+fi
%files
%if %{_defattr_is_vespa_vespa}