From 18186e5bcf184470fb65ae369e3512579d4859d4 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 17 Nov 2018 17:31:11 +0100 Subject: build_one.sh: run as bcd user when running on a Mageia server. --- build_one.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build_one.sh') 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 -- cgit v1.2.1