diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-06-28 15:48:34 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-06-28 15:48:34 +0100 |
commit | 28c078da4c3fc14ced0c2afcd72d26861a3620d2 (patch) | |
tree | aab3fdaf5455e39a00c4991c6ba9a97152c0bd25 | |
parent | 6148ead4a7eac57df0d8a1777f78403ce8ae3f62 (diff) |
use this script as root only
-rwxr-xr-x | buildbot | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -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 |