Browse Source

Merge pull request #15277 from calavera/check_apparmor_docker_contrib

Include apparmor/docker only when it exists.
Jessie Frazelle 10 years ago
parent
commit
dff25c9e46
1 changed files with 4 additions and 2 deletions
  1. 4 2
      hack/make/ubuntu

+ 4 - 2
hack/make/ubuntu

@@ -73,8 +73,10 @@ bundle_ubuntu() {
 	done
 
 	# Include contributed apparmor policy
-	mkdir -p "$DIR/etc/apparmor.d/"
-	cp contrib/apparmor/* "$DIR/etc/apparmor.d/"
+	if [ -d contrib/apparmor ]; then
+		mkdir -p "$DIR/etc/apparmor.d/"
+		cp contrib/apparmor/* "$DIR/etc/apparmor.d/"
+	fi
 
 	# Copy the binary
 	# This will fail if the binary bundle hasn't been built