From afd99775146c6926158ff6e6b78a71c37432d380 Mon Sep 17 00:00:00 2001 From: axk4545 Date: Sat, 29 Apr 2017 11:46:45 -0400 Subject: [PATCH] update ci mock script to matchnon mock script --- ci-build-mock.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/ci-build-mock.sh b/ci-build-mock.sh index 2c7b466..e108236 100644 --- a/ci-build-mock.sh +++ b/ci-build-mock.sh @@ -3,9 +3,9 @@ set -eu ##################################################################### # TigerOS Build Script for running on the build box with Jenkins CI # -# @author: Aidan Kahrs # +# @author: Aidan Kahrs # # # -# Usage: sudo bash ci-build-mock.sh # +# Usage: sudo bash ci-build-mock.sh # # # ##################################################################### # Check that the current user is root @@ -17,12 +17,15 @@ fi wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks mock -r fedora-25-x86_64 --init mock -r fedora-25-x86_64 --copyin tigeros.ks ./tigeros.ks -mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart svn -mock -r fedora-25-x86_64 --chroot "svn export https://github.com/RITlug/TigerOS/trunk/scripts/" +mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart mock -r fedora-25-x86_64 --chroot "livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 25 --title TigerOS-live --macboot" -mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso /srv/isos/TigerOS.iso +rm -rf /srv/isos/TigerOS-$(date +%Y%m%d).iso +mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso /srv/isos/TigerOS-$(date +%Y%m%d).iso rm -rf /var/lmc/ -cd /srv/isos/ -sha512sum *.iso >CHECKSUM512 -chown -R apache:apache /srv +cd /srv/isos +rm -rf CHECKSUM512-$(date +%Y%m%d) +sha512sum TigerOS-$(date +%Y%m%d).iso > CHECKSUM512-$(date +%Y%m%d) +chown -R nginx:nginx /srv +chmod 755 /srv/isos/*.iso +echo "Build finished"