diff --git a/scripts/homestead.rb b/scripts/homestead.rb index 1fd98ecaf..929eddc08 100644 --- a/scripts/homestead.rb +++ b/scripts/homestead.rb @@ -321,7 +321,7 @@ def self.configure(config, settings) config.vm.provision "start #{enable_service}", type: "shell", inline: "sudo systemctl start #{enable_service}" end if service.include?('enabled') - service['disabled'].each do |disable_service| + (service['disabled'] || []).each do |disable_service| config.vm.provision "disable #{disable_service}", type: "shell", inline: "sudo systemctl disable #{disable_service}" config.vm.provision "stop #{disable_service}", type: "shell", inline: "sudo systemctl stop #{disable_service}" end if service.include?('disabled')