Commit 1fd1b13f authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Fix foodcritic

parent 57c1a36b
default['ubuntu_base']['locales'] = %w(en_GB.utf8 de_DE.utf8)
default['ubuntu_base']['timezone'] = 'Europe/Berlin'
version = String(`awk '/DISTRIB_RELEASE=/' /etc/lsb-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]/./' | tr -d '\n'`)
if version === '16.04'
if node['platform_version'] == '16.04'
default['locales']['locale_file'] = '/etc/locale.gen'
end
......@@ -23,18 +23,16 @@
# THE SOFTWARE.
data_bag = data_bag_item('apps', 'global')
version = String(`awk '/DISTRIB_RELEASE=/' /etc/lsb-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]/./' | tr -d '\n'`)
#########################
### Update the system ###
#########################
if version != '16.04'
# apt-get crashes if the directory isn't created before it's execution
directory '/var/www/html' do
recursive true
action :create
end
# apt-get crashes if the directory isn't created before it's execution
directory '/var/www/html' do
recursive true
action :create
only_if { node['platform_version'] != '16.04' }
end
execute 'apt-get -y update'
......@@ -46,7 +44,7 @@ execute 'apt-get -y update'
### Update ruby ###
###################
if version === '16.04'
if node['platform_version'] === '16.04'
package 'ruby'
else
apt_repository('ruby-ng') do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment