diff options
author | John Chen <john.chen@mongodb.com> | 2019-10-11 21:11:36 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-11 21:11:36 +0000 |
commit | 4e1b61eb63e03031c14921d8cfde817f0a49000d (patch) | |
tree | 79ac6b2b672e4279e7d3512f315eb29e119b8e3c | |
parent | 958d004f06c37b404c7164a49cf5c4784bea6c6f (diff) | |
download | mongo-4e1b61eb63e03031c14921d8cfde817f0a49000d.tar.gz |
SERVER-43850 use os.name instead of os.family to check ubuntu
-rw-r--r-- | buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb index f849121d94a..dfd75e8a236 100644 --- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb +++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb @@ -149,8 +149,8 @@ if deb # All versions of Debian 10 will use /usr/sbin/nologin for service # account shells its('shell') { - if ((os[:family] == 'debian' and os[:release].split('.')[0] == '10') or - (os[:family] == 'ubuntu' and os[:release] == '18.04')) + if ((os[:name] == 'debian' and os[:release].split('.')[0] == '10') or + (os[:name] == 'ubuntu' and os[:release] == '18.04')) should eq '/usr/sbin/nologin' else should eq '/bin/false' |