Code

Updated for plugins without html directory
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 14:40:33 +0000 (14:40 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 14:40:33 +0000 (14:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13121 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/rpm-make-gosa

index 9bbfc68155edc6bf603938195352c7fc03f19d16..a7bd4250070bf49bc1af54856cdd3880aa08166c 100755 (executable)
@@ -67,7 +67,9 @@ BuildArch:              noarch
 
 # Move extra HTML and images
 mkdir -p %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@
-mv ./html/* %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@
+if [ -d html ]; then
+       mv ./html/* %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@
+fi
 
 # Move contrib if available
 mkdir -p %{buildroot}/usr/share/doc/%{name}