Created
September 10, 2013 21:44
-
-
Save wpietri/6516165 to your computer and use it in GitHub Desktop.
chef, the wrong way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twiki_tmp = "/tmp/twiki.tar.gz" | |
remote_file twiki_tmp do | |
source "http://softlayer-dal.dl.sourceforge.net/project/twiki/TWiki%20for%20all%20Platforms/TWiki-5.1.4/TWiki-5.1.4.tgz" | |
checksum "bcd8544c83eb388737e334cdc2c2734e79df63fd0a64610c144addb00bc0d70d" | |
end | |
execute "extract Twiki" do | |
command "tar -C /var/ -xzf " + twiki_tmp | |
creates "/var/twiki/COPYING" | |
end | |
execute "chown -R www-data:www-data /var/twiki" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll want to do something like this:
notice the
action
andsubscribes
in the execute block