diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-04-22 15:56:33 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-04-22 15:56:33 +0000 |
commit | 33ceecfee5a9dc2813375d396e97b90c5427d4da (patch) | |
tree | 6e178af3e66c5015cd03b705a059de22f47d30d6 /modules/buildsystem/templates | |
parent | 1f928867c443c385a95f350c8f60a97d5def720c (diff) | |
download | puppet-33ceecfee5a9dc2813375d396e97b90c5427d4da.tar puppet-33ceecfee5a9dc2813375d396e97b90c5427d4da.tar.gz puppet-33ceecfee5a9dc2813375d396e97b90c5427d4da.tar.bz2 puppet-33ceecfee5a9dc2813375d396e97b90c5427d4da.tar.xz puppet-33ceecfee5a9dc2813375d396e97b90c5427d4da.zip |
iurt2010.1 should be run from iurt account
Diffstat (limited to 'modules/buildsystem/templates')
-rwxr-xr-x | modules/buildsystem/templates/iurt2010.1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/buildsystem/templates/iurt2010.1 b/modules/buildsystem/templates/iurt2010.1 index 065956a1..9a5f4c30 100755 --- a/modules/buildsystem/templates/iurt2010.1 +++ b/modules/buildsystem/templates/iurt2010.1 @@ -1,7 +1,7 @@ #!/bin/sh -if [ `id -u` -ne 0 ] +if [ `whoami` != <%= build_login %> ] then - echo 'this script should be run as root' >&2 + echo 'this script should be run as <%= build_login %>' >&2 exit 1 fi -su - <%= build_login %> -c "iurt --chrooted-urpmi -m contrib/release main/release -- http://repository.mageia.org/mandriva/ -r mandriva2010.1 x86_64 $@" +iurt --chrooted-urpmi -m contrib/release main/release -- http://repository.mageia.org/mandriva/ -r mandriva2010.1 x86_64 $@ |