gsh.sh should run as user tomcat with all env vars used in tomcat

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • 2.5.28
    • Affects Version/s: None
    • Component/s: None
    • None

      this is a starting point, add this to gsh.sh

       

      if [ -z "$GROUPER_GSH_CHECK_USER" ]
        then
          if [ -f /usr/local/bin/grouperEnv.sh ] 
            then
              . /usr/local/bin/grouperEnv.sh
          fi
      fi
       
       
      if [ "$GROUPER_GSH_CHECK_USER" = "true"  ]
        then
          username=$(whoami)
          if [ "$GROUPER_GSH_USER" != "$username"  ]
            then
              echo "ERROR: User is '$username' but should be '$GROUPER_GSH_USER'!  sudo -u $GROUPER_GSH_USER /bin/bash      and then run gsh.sh"
              exit 1
          fi
          if [ -z "$JAVA_HOME" ] 
            then
              if [ -f /etc/bashrc ] 
                then
                  . /etc/bashrc
              fi
          fi
      fi
       
       

            Assignee:
            Chris Hyzer (upenn.edu)
            Reporter:
            Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: