summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-17 17:31:11 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-17 17:31:11 +0100
commit18186e5bcf184470fb65ae369e3512579d4859d4 (patch)
treec9254f8da9d343df712c8dc0a7f8a7135034b6b1
parenta388620801551ed57642af27b2645b62b959b017 (diff)
downloaddrakclassic-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.
-rwxr-xr-xbuild_one.sh9
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