aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-07-11 23:31:04 +0000
committerNicolas Vigier <boklm@mageia.org>2011-07-11 23:31:04 +0000
commit2c995aa4f0f6f289429478490ace9f81027be125 (patch)
tree9cdb0e8378b3b3322e2416d0950e6951d95844c6
parent150236cda4516e5ff57b96c906a25fb95a83f3b2 (diff)
downloadpuppet-2c995aa4f0f6f289429478490ace9f81027be125.tar
puppet-2c995aa4f0f6f289429478490ace9f81027be125.tar.gz
puppet-2c995aa4f0f6f289429478490ace9f81027be125.tar.bz2
puppet-2c995aa4f0f6f289429478490ace9f81027be125.tar.xz
puppet-2c995aa4f0f6f289429478490ace9f81027be125.zip
add maintdb wrapper
-rw-r--r--modules/buildsystem/templates/wrapper.maintdb7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/buildsystem/templates/wrapper.maintdb b/modules/buildsystem/templates/wrapper.maintdb
new file mode 100644
index 00000000..a27994ff
--- /dev/null
+++ b/modules/buildsystem/templates/wrapper.maintdb
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+maintdbuser="<%= maintdb_login %>"
+maintdbpath="<%= maintdb_binpath %>"
+
+sudo -u "$maintdbuser" "$maintdbpath" $(whoami) $@
+