summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-06-28 15:48:34 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-06-28 15:48:34 +0100
commit28c078da4c3fc14ced0c2afcd72d26861a3620d2 (patch)
treeaab3fdaf5455e39a00c4991c6ba9a97152c0bd25
parent6148ead4a7eac57df0d8a1777f78403ce8ae3f62 (diff)
use this script as root only
-rwxr-xr-xbuildbot21
1 files changed, 16 insertions, 5 deletions
diff --git a/buildbot b/buildbot
index 626b4f0..c661b39 100755
--- a/buildbot
+++ b/buildbot
@@ -26,6 +26,15 @@ export local envkogaionoverlay="layman -f -a kogaion -o https://raw.github.com/R
export local envkogaiondesktopoverlay="layman -f -a kogaion-desktop -o https://raw.github.com/Rogentos/kogaion-desktop/master/overlay.xml"
+envcheckroot () {
+ if [[ "$(whoami)" != root ]] ; then
+ echo ""
+ echo "You're not root?...No cookies for you, go away !!!"
+ echo ""
+ exit 1
+ fi
+}
+
envkogaionsquashfsintegrity () {
# our bare metal buildserver is x86_64 but we want to build 32bit packages as well
# run this script with linux32 to fool it we run i686 and to build 32bit packages
@@ -197,11 +206,13 @@ envkogaionprepare () {
}
main () {
- envkogaionsquashfsintegrity
- envkogaionprepare
- envkogaionbuildsystem
- envkogaionbuild
- envkogaionchroot
+ if envcheckroot ; then
+ envkogaionsquashfsintegrity
+ envkogaionprepare
+ envkogaionbuildsystem
+ envkogaionbuild
+ envkogaionchroot
+ fi
}
main