trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sand...@apache.org
Subject [42/50] [abbrv] incubator-trafodion git commit: Merge remote branch 'origin/release2.1'
Date Fri, 12 May 2017 07:52:09 GMT
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b389ce50/install/python-installer/scripts/copy_files.py
----------------------------------------------------------------------
diff --cc install/python-installer/scripts/copy_files.py
index 9a75807,ef79265..d5ebc6c
--- a/install/python-installer/scripts/copy_files.py
+++ b/install/python-installer/scripts/copy_files.py
@@@ -37,9 -37,8 +37,9 @@@ def run(user, pwd)
      hosts = dbcfgs['node_list'].split(',')
      traf_package = dbcfgs['traf_package']
  
-     sudo_prefix = get_sudo_prefix()
 -    run_cmd('sudo -n rm -rf %s*' % SSHKEY_FILE)
 -    run_cmd('sudo -n echo -e "y" | ssh-keygen -t rsa -N "" -f %s' % SSHKEY_FILE)
++    udo_prefix = get_sudo_prefix()
 +    run_cmd('%s rm -rf %s*' % (sudo_prefix, SSHKEY_FILE))
 +    run_cmd('%s echo -e "y" | ssh-keygen -t rsa -N "" -f %s' % (sudo_prefix, SSHKEY_FILE))
  
      files = [SSHKEY_FILE, SSHKEY_FILE+'.pub', traf_package]
  

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b389ce50/install/python-installer/scripts/traf_check.py
----------------------------------------------------------------------
diff --cc install/python-installer/scripts/traf_check.py
index 159d293,6463589..83b3423
--- a/install/python-installer/scripts/traf_check.py
+++ b/install/python-installer/scripts/traf_check.py
@@@ -39,13 -39,13 +39,18 @@@ class Check(object)
  
      def check_sudo(self):
          """ check sudo access """
 -        run_cmd('sudo -n echo -n "check sudo access" > /dev/null 2>&1')
 +        run_cmd('%s echo -n "check sudo access" > /dev/null 2>&1' % get_sudo_prefix())
 +
 +    def check_ssh_pam(self):
 +        """ check if UsePAM is set to yes in sshd_config """
 +        if not cmd_output('grep "^UsePAM yes" %s' % SSH_CONFIG_FILE):
 +            err('\'UsePAM\' should be set to \'yes\' in %s' % SSH_CONFIG_FILE)
  
+     def check_ssh_pam(self):
+         """ check if UsePAM is set to yes in sshd_config """
+         if not cmd_output('grep "^UsePAM yes" %s' % SSH_CONFIG_FILE):
+             err('\'UsePAM\' should be set to \'yes\' in %s' % SSH_CONFIG_FILE)
+ 
      def check_hbase_xml(self):
          """ check if hbase-site.xml file exists """
          hbase_xml_file = self.dbcfgs['hbase_xml_file']


Mime
View raw message