1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Include apparmor/docker only when it exists.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera 2015-08-03 17:34:04 -07:00
parent d7c2fe0f20
commit 408cffac94

View file

@ -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