forked from pool/000package-groups
Accepting request 695181 from home:RBrownSUSE:branches:openSUSE:Factory
OBS-URL: https://build.opensuse.org/request/show/695181 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/000package-groups?expand=0&rev=68
This commit is contained in:
parent
46ea9ff49e
commit
91556b9ec0
@ -87,6 +87,19 @@ ln -s ..%{_libexecdir}/os-release %{buildroot}%{_sysconfdir}/os-release
|
||||
|
||||
___CREATE_PRODUCT_FILES___
|
||||
|
||||
%post
|
||||
# Update from openSUSE-Tumbleweed-Kubic to openSUSE-MicroOS
|
||||
# Fix the baseproduct symlink and make sure, it exists
|
||||
if [ -L /etc/products.d/baseproduct ] ; then
|
||||
PRODLINK=$(basename $(readlink -f /etc/products.d/baseproduct))
|
||||
if [ "$PRODLINK" == "openSUSE-Tumbleweed-Kubic.prod" ]; then
|
||||
rm -f /etc/products.d/baseproduct
|
||||
fi
|
||||
fi
|
||||
if [ ! -e /etc/products.d/baseproduct ]; then
|
||||
ln -sf openSUSE-MicroOS.prod /etc/products.d/baseproduct
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(644,root,root,755)
|
||||
%{_sysconfdir}/os-release
|
||||
|
Loading…
Reference in New Issue
Block a user