From f9fe35c38f7848368690910d3b605737da399f28 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 28 Jan 2012 15:29:40 -0200 Subject: Using cwd at compile exec --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', -- cgit v1.2.3