itamae/cookbooks/statup/install.rb

23 lines
364 B
Ruby
Raw Normal View History

2019-03-03 08:50:49 +00:00
URL = 'https://assets.statup.io/install.sh'
TMP = '/tmp/install.sh'
# Download install script
execute "wget #{URL} -O #{TMP}" do
user 'root'
not_if 'test -e /usr/local/bin/statup'
end
file TMP do
mode '755'
not_if 'test -e /usr/local/bin/statup'
end
# Execute install script:
execute TMP do
user 'root'
not_if 'test -e /usr/local/bin/statup'
end