summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-28 15:29:40 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-28 15:29:40 -0200
commitf9fe35c38f7848368690910d3b605737da399f28 (patch)
treedac3bb057c1feab3c800177dabdecaa9a6bfbb9c
parent6af2336866731f1ae6ef3f10fb4852ae759e45a1 (diff)
downloadpuppet-qwebirc-f9fe35c38f7848368690910d3b605737da399f28.tar.gz
puppet-qwebirc-f9fe35c38f7848368690910d3b605737da399f28.tar.bz2
Using cwd at compile exec
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 02e7ead..9d5d724 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -60,7 +60,8 @@ class qwebirc($ircserver = 'irc.myserver.com', $ircport = '6667', $realname = 'h
notify => Service['qwebirc'],
}
- exec { 'cd /var/lib/qwebirc && ./compile.py':
+ exec { './compile.py':
+ cwd => '/var/lib/qwebirc',
creates => '/var/lib/qwebirc/.compiled',
user => 'qwebirc',
group => 'qwebirc',