]> gitweb.fluxo.info Git - puppet-qwebirc.git/commitdiff
Using cwd at compile exec
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Jan 2012 17:29:40 +0000 (15:29 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Jan 2012 17:29:40 +0000 (15:29 -0200)
manifests/init.pp

index 02e7ead08d16ae039432b46febfb72db55bb61a9..9d5d72493cbe6ad2c3eecbeb60780cc5e62dd8ed 100644 (file)
@@ -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',