Merge "Remove install-static element"

This commit is contained in:
Jenkins
2015-02-09 06:19:09 +00:00
committed by Gerrit Code Review
2 changed files with 0 additions and 17 deletions

View File

@@ -1,7 +0,0 @@
Copy static files into the built image.
The contents of any ``static/`` subdirs of elements will be installed into
these images at build time using ``rsync -lCr``. So to install a file
``/etc/boo``, include ``static/etc/boo`` in your element.
Note: This installs all files with owner and group of root.

View File

@@ -1,10 +0,0 @@
#!/bin/bash
# Note that this relies on the detail that all elements share one dir inside
# the chroot. This will copy all the files that elements have added to
# element/static into the image. Mode, symlinks etc will be respected.
set -eux
STATIC_SOURCE="$(dirname $0)/../static"
[ -d "${STATIC_SOURCE}" ] || exit 0
rsync -lCr "${STATIC_SOURCE}"/ /