Demo entry 5437942

text

   

Submitted by anonymous on Jun 25, 2016 at 04:36
Language: Bash. Code size: 607 Bytes.

    umask 002
else
    umask 022
fi

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        if [ "${-#*i}" != "$-" ]; then
            . "$i"
        else
            . "$i" >/dev/null
        fi
    fi
done

unset i
unset -f pathmunge

export JAVA_HOME=/usr/local/java/jdk1.8.0_92
export JRE_HOME=$JAVA_HOME/jre
export CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export ZOOKEEPER_HOME=/usr/local/zookeeper/zookeeper-3.4.8
export CLASSPATH=$ZOOKEEPER_HOME/lib:$CLASSPATH
export PATH=$ZOOKEEPER_HOME/bin:$PATH

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).