Browse Source

added check for sudo

website
axk4545 7 years ago
parent
commit
557c451876
2 changed files with 14 additions and 2 deletions
  1. +7
    -1
      ci-build-mock.sh
  2. +7
    -1
      ci-build.sh

+ 7
- 1
ci-build-mock.sh View File

@ -5,9 +5,15 @@ set -eu
# TigerOS Build Script for running on the build box with Jenkins CI #
# @author: Aidan Kahrs #
# #
# Usage: sudo bash build.sh #
# Usage: sudo bash ci-build-mock.sh #
# #
#####################################################################
# Check that the current user is root
if [ $EUID != 0 ]
then
echo "Please run this script as root (sudo $@$0)."
exit
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

+ 7
- 1
ci-build.sh View File

@ -5,9 +5,15 @@ set -eu
# TigerOS Build Script for running on the build box with Jenkins CI #
# @author: Aidan Kahrs #
# #
# Usage: sudo bash build.sh #
# Usage: sudo bash ci-build.sh #
# #
#####################################################################
# Check that the current user is root
if [ $EUID != 0 ]
then
echo "Please run this script as root (sudo $@$0)."
exit
fi
rm -rf tigeros.ks
wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks
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

Loading…
Cancel
Save