Browse Source

Merge pull request #9309 from joelddiaz/container-copy-dir-symlink

handle symlinks in openshift-ansible container image
Scott Dodson 6 years ago
parent
commit
997b4932e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      images/installer/root/usr/local/bin/run

+ 1 - 1
images/installer/root/usr/local/bin/run

@@ -21,7 +21,7 @@ if [[ -v INVENTORY_FILE ]]; then
   cp ${INVENTORY_FILE} ${INVENTORY}
 elif [[ -v INVENTORY_DIR ]]; then
   INVENTORY="$(mktemp -d)"
-  cp -R ${INVENTORY_DIR}/* ${INVENTORY}
+  cp -RL ${INVENTORY_DIR}/* ${INVENTORY}
 elif [[ -v INVENTORY_URL ]]; then
   curl -o ${INVENTORY} ${INVENTORY_URL}
 elif [[ -v DYNAMIC_SCRIPT_URL ]]; then