/[adm]/puppet/modules/buildsystem/templates/binrepo/wrapper.upload-bin
ViewVC logotype

Contents of /puppet/modules/buildsystem/templates/binrepo/wrapper.upload-bin

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2515 - (show annotations) (download)
Fri Mar 16 22:46:37 2012 UTC (12 years, 1 month ago) by misc
File size: 455 byte(s)
clean binrepo module for puppet-lint compliance
1 #!/bin/sh
2
3 binrepouser="<%= login %>"
4 uploadbinpath="<%= uploadbinpath %>"
5 packagerscommittersgroup="<%= packagers_committers_group %>"
6
7 function isingroup()
8 {
9 grp="$1"
10 for group in `groups`
11 do if [ "$grp" = "$group" ]
12 then
13 return 0
14 fi
15 done
16 return 1
17 }
18
19 if ! isingroup "$packagerscommittersgroup"
20 then
21 echo "You are not in $packagerscommittersgroup group."
22 exit 1
23 fi
24
25 sudo -u "$binrepouser" "$uploadbinpath" $(whoami) $@
26

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30