Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/328#discussion_r53382963
--- Diff: install/installer/traf_add_sudoAccess ---
@@ -24,17 +24,28 @@ TRAF_CONFIG=/etc/trafodion/trafodion_config
source $TRAF_CONFIG
sudoFile="trafodion"
-echo "***INFO: Creating $TRAF_USER sudo access file"
echo
+function haSudoAdd {
+
echo "## Trafodion Floating IP commands" > $sudoFile
echo "Cmnd_Alias IP = /sbin/ip" >> $sudoFile
echo "Cmnd_Alias ARP = /sbin/arping" >> $sudoFile
echo "## Allow Trafodion id to run commands needed to configure floating
IP" >> $sudoFile
echo "%trafodion ALL = NOPASSWD: IP, ARP" >> $sudoFile
+}
+
+function backupRestore {
+
+echo "## Allow $BACKUP_USER id to run commands needed for backup and
restore" >> $BACKUP_USER
+echo "%$BACKUP_USER ALL =(hbase) NOPASSWD: /usr/bin/hbase" >> $BACKUP_USER
+
+}
+function copyTrafFile {
+
if [[ $all_node_count -gt "1" ]]; then
--- End diff --
No need for a $all_node_count -n test here?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---