Skip to content

Commit

Permalink
More checks about /etc/products.d/baseproduct and /etc/products.d/ope…
Browse files Browse the repository at this point in the history
…nSUSE.prod
  • Loading branch information
embar- committed Jun 7, 2017
1 parent 08df4b1 commit a581b1a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package/yast2-live-installer.spec
Expand Up @@ -65,12 +65,13 @@ cp %{SOURCE2} %{buildroot}/%_bindir/
chmod 755 %{buildroot}/%_bindir/*

%post
if [ -f /etc/products.d/baseproduct ] ; then
rm /etc/products.d/baseproduct
fi
if [ -f /etc/products.d/openSUSE.prod ] ; then
ln -s /etc/products.d/openSUSE.prod /etc/products.d/baseproduct
if ( [ ! -L /etc/products.d/baseproduct ] && [ -f /etc/products.d/openSUSE.prod ] ) ; then
if [ -f /etc/products.d/baseproduct ] ; then
rm /etc/products.d/baseproduct
fi
ln -s /etc/products.d/openSUSE.prod /etc/products.d/baseproduct
fi

%files
%defattr(-,root,root)
%{yast_clientdir}/*.rb
Expand Down

0 comments on commit a581b1a

Please sign in to comment.