Merge branch 'master' of https://github.com/armbian/build
This commit is contained in:
commit
4e48f295e7
@ -98,13 +98,19 @@ pack_upload ()
|
||||
|
||||
if [[ $COMPRESS_OUTPUTIMAGE == *gz* ]]; then
|
||||
display_alert "Compressing" "$DEST/images/${version}.img.gz" "info"
|
||||
pigz < $DESTIMG/${version}.img > ${DESTIMG}/${version}.img.gz
|
||||
pigz $DESTIMG/${version}.img
|
||||
fi
|
||||
|
||||
if [[ $COMPRESS_OUTPUTIMAGE == *xz* ]]; then
|
||||
display_alert "Compressing" "$DEST/images/${version}.img.xz" "info"
|
||||
pixz -3 < $DESTIMG/${version}.img > ${DESTIMG}/${version}.img.xz
|
||||
rm ${DESTIMG}/${version}.img
|
||||
fi
|
||||
|
||||
if [[ -n "${SEND_TO_SERVER}" ]]; then
|
||||
ssh "${SEND_TO_SERVER}" "mkdir -p ${SEND_TO_LOCATION}${BOARD}/{archive,nightly}" &
|
||||
display_alert "Uploading" "Please wait!" "info"
|
||||
nice -n 19 bash -c "rsync -arP --info=progress2,stats1 --ignore-existing --remove-source-files --prune-empty-dirs $DESTIMG/ -e 'ssh -p 22' ${SEND_TO_SERVER}:${SEND_TO_LOCATION}${BOARD}/${subdir}" &
|
||||
nice -n 19 bash -c "rsync -arP --info=progress2 --ignore-existing --remove-source-files --prune-empty-dirs $DESTIMG/ -e 'ssh -T -c aes128-ctr -o Compression=no -x -p 22' ${SEND_TO_SERVER}:${SEND_TO_LOCATION}${BOARD}/${subdir}" &
|
||||
else
|
||||
mv $DESTIMG/*.* $DEST/images/
|
||||
fi
|
||||
|
||||
@ -656,7 +656,13 @@ create_image()
|
||||
|
||||
if [[ $COMPRESS_OUTPUTIMAGE == *gz* ]]; then
|
||||
display_alert "Compressing" "$DEST/images/${version}.img.gz" "info"
|
||||
pigz < $DESTIMG/${version}.img > $DEST/images/${version}.img.gz
|
||||
pigz $DESTIMG/${version}.img
|
||||
fi
|
||||
|
||||
if [[ $COMPRESS_OUTPUTIMAGE == *xz* ]]; then
|
||||
display_alert "Compressing" "$DEST/images/${version}.img.xz" "info"
|
||||
pixz -3 < $DESTIMG/${version}.img > $DEST/images/${version}.img.xz
|
||||
find $DESTIMG -type f -name '${version}.img' -print0 | xargs -0 rm --
|
||||
fi
|
||||
|
||||
mv $DESTIMG/${version}.img.txt $DEST/images/${version}.img.txt || exit 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user