diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-17 17:31:11 +0100 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-17 17:31:11 +0100 |
commit | 18186e5bcf184470fb65ae369e3512579d4859d4 (patch) | |
tree | c9254f8da9d343df712c8dc0a7f8a7135034b6b1 /build_one.sh | |
parent | a388620801551ed57642af27b2645b62b959b017 (diff) | |
download | drakclassic-config-18186e5bcf184470fb65ae369e3512579d4859d4.tar drakclassic-config-18186e5bcf184470fb65ae369e3512579d4859d4.tar.gz drakclassic-config-18186e5bcf184470fb65ae369e3512579d4859d4.tar.bz2 drakclassic-config-18186e5bcf184470fb65ae369e3512579d4859d4.tar.xz drakclassic-config-18186e5bcf184470fb65ae369e3512579d4859d4.zip |
build_one.sh: run as bcd user when running on a Mageia server.
Diffstat (limited to 'build_one.sh')
-rwxr-xr-x | build_one.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build_one.sh b/build_one.sh index 2bb9bbb..4454ed6 100755 --- a/build_one.sh +++ b/build_one.sh @@ -1,7 +1,12 @@ #!/bin/sh + +case $(hostname) in + *.mageia.org) sudo="sudo -u bcd";; +esac + ./update_bootloader_files.sh if [ $# -gt 0 ] ; then - drakclassic $* + $sudo drakclassic $* else - drakclassic --clean --all + $sudo drakclassic --clean --all fi |