lib/beaker/host/mac/exec.rb in beaker-4.3.0 vs lib/beaker/host/mac/exec.rb in beaker-4.4.0
- old
+ new
@@ -19,10 +19,10 @@
# @api private
# @return [Result] result of the command starting the SSH service
# (from {#ssh_service_restart})
def ssh_permit_user_environment
ssh_config_file = '/etc/sshd_config'
- ssh_config_file = '/private/etc/ssh/sshd_config' if self['platform'] =~ /osx-10\.*(11|12|13)/
+ ssh_config_file = '/private/etc/ssh/sshd_config' if self['platform'] =~ /osx-10\.*(11|12|13|14)/
exec(Beaker::Command.new("echo '\nPermitUserEnvironment yes' >> #{ssh_config_file}"))
ssh_service_restart()
end