summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEirk Nygaard <eirik.nygaard@yahooinc.com>2022-11-07 08:34:10 +0000
committerEirk Nygaard <eirik.nygaard@yahooinc.com>2022-11-07 08:36:15 +0000
commitbaf904e2d020b5a2594a3eea00bdaccc0d26a20d (patch)
tree242c037f1416cccdc99202027ae7dd47cf290beb
parent24138b41c3cc7ba82f33139faf2ed6eb985bf5d5 (diff)
Create tmp symlink is post install of base package
-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}