The link to tastore was only created during rpm installation. However, the path
to tastore has changed since the last release and the link should be recreated
during rpm update as well.
This commit makes the rpm update recreate the link so that it points to the
valid tastore directory.
Change-Id: I545461b058eb966e2c24a4f1752b241948e5134c
fi
%post
+# do it always in case the path was changed
+rm -rf %{link_tastore_dir}
+mkdir -p `dirname %{link_tastore_dir}`
+ln -sf %{tastore_dir} %{link_tastore_dir}
+
if [ $1 -eq 1 ] ; then
- rm -rf %{link_tastore_dir}
- mkdir -p `dirname %{link_tastore_dir}`
- ln -sf %{tastore_dir} %{link_tastore_dir}
tef-update.sh simulator
fi