summaryrefslogtreecommitdiffstats
path: root/build_one.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_one.sh')
-rwxr-xr-xbuild_one.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/build_one.sh b/build_one.sh
index 161030e..dff302d 100755
--- a/build_one.sh
+++ b/build_one.sh
@@ -1,7 +1,12 @@
#!/bin/sh
+
+case $(hostname) in
+ *.mageia.org) sudo="sudo -u draklive sudo";;
+esac
+
./update_bootloader_files.sh
if [ $# -gt 0 ] ; then
- draklive2 $*
+ $sudo draklive2 $*
else
- draklive2 --clean --all
+ $sudo draklive2 --clean --all
fi