diff --git a/cloud-mu.gemspec b/cloud-mu.gemspec index b5eff8a51..9f36377d5 100644 --- a/cloud-mu.gemspec +++ b/cloud-mu.gemspec @@ -17,8 +17,8 @@ end Gem::Specification.new do |s| s.name = 'cloud-mu' - s.version = '2.0.1' - s.date = '2019-03-01' + s.version = '2.0.2' + s.date = '2019-05-06' s.require_paths = ['modules'] s.required_ruby_version = '>= 2.4' s.summary = "The eGTLabs Mu toolkit for unified cloud deployments" diff --git a/modules/mu/clouds/aws/userdata/linux.erb b/modules/mu/clouds/aws/userdata/linux.erb index feb47c338..7fdf15e1f 100644 --- a/modules/mu/clouds/aws/userdata/linux.erb +++ b/modules/mu/clouds/aws/userdata/linux.erb @@ -66,7 +66,7 @@ if ping -c 5 8.8.8.8 > /dev/null; then version=6 fi fi - if [ $version -eq 7 ];then + if [ "$version" == "7" ];then userdata_dir="/var/lib/cloud/instances/$instance_id" else userdata_dir="/var/lib/cloud/instance" @@ -79,7 +79,7 @@ if ping -c 5 8.8.8.8 > /dev/null; then sed -i 's/^Defaults.*requiretty$/Defaults !requiretty/' /etc/sudoers - if [ $version == 7 ];then + if [ "$version" == "7" ];then chmod 755 /etc/rc.d/rc.local systemctl reset-failed sshd.service fi @@ -161,7 +161,6 @@ if [ "$need_reboot" == "1" ];then shutdown -r now "Applying new kernel" fi <% end %> -fi if [ "$AWSCLI" != "" ];then $AWSCLI --region="$region" s3 cp s3://<%= MU.adminBucketName %>/<%= $mu.muID %>-secret .