summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Chen <john.chen@mongodb.com>2019-10-07 18:17:41 +0000
committerevergreen <evergreen@mongodb.com>2019-10-07 18:17:41 +0000
commit8cd7f1a4cd8bd911e1443e80a122223892fc0ae5 (patch)
tree6df176468841daa90bc1e365d777c96bf2e20f2f
parent1411cf602a21e45a5ef42b6869c480eb420976ee (diff)
downloadmongo-8cd7f1a4cd8bd911e1443e80a122223892fc0ae5.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.rb4
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 c9a8f0fde61..be53465b0c1 100644
--- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
+++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
@@ -150,8 +150,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'