Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-1168

[EAP6] Assemble script fails to copy user provided data files to image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • EAP64 1.5.0.GA
    • None
    • EAP6
    • None
    • User Experience
    • Hide

      Create a script containing:

      #!/bin/bash
      
      DATA_DIR=/tmp/foo
      src="$HOME"/tmp
      
      [ -d "$DATA_DIR" ] && src="$src/*"
      
      echo "cp -av $src $DATA_DIR"
      cp -av "$src" "$DATA_DIR"
      

      Ensure $src directory contains at least one file and that $DATA_DIR exists.
      Run the script.

      Show
      Create a script containing: #!/bin/bash DATA_DIR=/tmp/foo src= "$HOME" /tmp [ -d "$DATA_DIR" ] && src= "$src/*" echo "cp -av $src $DATA_DIR" cp -av "$src" "$DATA_DIR" Ensure $src directory contains at least one file and that $DATA_DIR exists. Run the script.
    • CLOUD Maintenance Sprint 6

      Line 75 of the os-eap-s2i assemble script has this cp command:

      cp -av "$src" "$DATA_DIR"

      This should be changed at least to:

      cp -av ${src} "$DATA_DIR"

      Currently, the possible list from $src is causing the cp command to fail with stat error:

      cp: cannot stat '/home/trogers/tmp/*': No such file or directory

            rhn-engineering-mgoldman Marek Goldmann
            rhn-support-trogers Travis Rogers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: