Skip to content

Commit

Permalink
For issue #440 added a mkdir for $VAR_DIR/output if dir does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
gdha committed Aug 4, 2014
1 parent be46c06 commit 9f4d1e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/share/rear/output/PXE/default/80_copy_to_tftp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ PXE_KERNEL="${PXE_TFTP_PREFIX}kernel"
PXE_INITRD="${PXE_TFTP_PREFIX}initrd.cgz"
PXE_MESSAGE="${PXE_TFTP_PREFIX}message"

[[ ! -d "$PXE_TFTP_LOCAL_PATH" ]] && mkdir $v -m 750 "$PXE_TFTP_LOCAL_PATH" >&2

cp -pL $v "$KERNEL_FILE" "$PXE_TFTP_LOCAL_PATH/$PXE_KERNEL" >&2
cp -a $v "$TMP_DIR"/initrd.cgz "$PXE_TFTP_LOCAL_PATH/$PXE_INITRD" >&2
Expand Down

0 comments on commit 9f4d1e6

Please sign in to comment.