(file) Return to settogpath CVS log (file) (dir) Up to [Pegasus] / pegasus / installs / scripts

 1 w.otsuka 1.1 #!/bin/bash
 2              # Set global PATH and MANPATH for tog-pegasus
 3              
 4              echo "Executing this script will add the tog-pegasus binary directories,"
 5              echo "/opt/tog-pegasus/bin and /opt/tog-pegasus/sbin, to the global $PATH. "
 6              echo "It will also add the tog-pegasus man page directory,"
 7              echo "/opt/tog-pegasus/share/man, to the global $MANPATH."
 8              read -r -p "Do you want to continue? (y/n) " ANSWER
 9              if (test $ANSWER = 'y') || (test $ANSWER = 'Y'); then
10                echo "export PATH=\$PATH:/opt/tog-pegasus/bin:/opt/tog-pegasus/sbin" >> /etc/profile
11                echo "if test -x /usr/bin/manpath; then" >> /etc/profile
12                if test -f /etc/redhat-release; then
13                   echo "  MANPATH=\`/usr/bin/manpath -w\`" >> /etc/profile
14                else
15                   echo "  MANPATH=\`/usr/bin/manpath -q\`" >> /etc/profile
16                fi
17                echo "  export MANPATH=\$MANPATH:/opt/tog-pegasus/share/man" >> /etc/profile
18                echo "fi" >> /etc/profile
19              fi

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2