1
0

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:
Dominique Leuenberger 2019-04-21 07:00:05 +00:00 committed by Git OBS Bridge
parent 46ea9ff49e
commit 91556b9ec0

View File

@ -87,6 +87,19 @@ ln -s ..%{_libexecdir}/os-release %{buildroot}%{_sysconfdir}/os-release
___CREATE_PRODUCT_FILES___ ___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 %files
%defattr(644,root,root,755) %defattr(644,root,root,755)
%{_sysconfdir}/os-release %{_sysconfdir}/os-release