You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by sa...@apache.org on 2017/05/12 07:52:09 UTC
[42/50] [abbrv] incubator-trafodion git commit: Merge remote branch
'origin/release2.1'
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']