diff --git a/build.sh b/build.sh index 36014c7..f68e4d9 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,12 @@ +#!/usr/bin/env bash rm -f raspi_3.img rm -f raspi_3.log -make raspi_3.img \ No newline at end of file +make raspi_3.img + +# copy to releases +echo "++ successful image build, copying output to releases" +TODAY=$(date +"%y%m%d") +RELEASE_DIR=/var/www/releases.peachcloud.org/html/peach-imgs/$TODAY +mkdir -p $RELEASE_DIR +cp raspi_3.img $RELEASE_DIR/${TODAY}_peach_raspi3.img +cp raspi_3.log $RELEASE_DIR/${TODAY}_peach_raspi3.log \ No newline at end of file