Fix symlink creation on smack-utils install.
authorRafal Krypa <r.krypa@samsung.com>
Mon, 22 Jul 2013 15:53:34 +0000 (17:53 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Wed, 14 Aug 2013 18:09:57 +0000 (20:09 +0200)
Change-Id: I40ffb1cdede26dc6596bf90c3aa11ec60dcca6fb

packaging/smack.spec

index f45455d..140183e 100644 (file)
@@ -60,7 +60,7 @@ rm -rf %{buildroot}/%{_docdir}
 rm -rf %{buildroot}
 
 %post utils
-if [ -d /etc/smack ]; then
+if [ -d /etc/smack -a ! -L /etc/smack ]; then
        cp -r /etc/smack /opt/etc/
        rm -rf /etc/smack
 fi