HADOOP-7610. Fix for hadoop debian package. Contributed by Eric Yang

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1167428 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Giridharan Kesavan 2011-09-10 01:08:00 +00:00
parent b982e6205f
commit a3df5d0b26
2 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,8 @@ Trunk (unreleased changes)
HADOOP-7606. Upgrade Jackson to version 1.7.1 to match the version required
by Jersey (Alejandro Abdelnur via atm)
HADOOP-7610. Fix for hadoop debian package (Eric Yang via gkesavan)
Release 0.23.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -134,7 +134,9 @@ if [ "${UNINSTALL}" -eq "1" ]; then
rm -rf ${HADOOP_PREFIX}/etc/hadoop
fi
rm -f /etc/default/hadoop-env.sh
if [ -d /etc/profile.d ]; then
rm -f /etc/profile.d/hadoop-env.sh
fi
else
# Create symlinks
if [ "${HADOOP_CONF_DIR}" != "${HADOOP_PREFIX}/etc/hadoop" ]; then
@ -142,7 +144,9 @@ else
ln -sf ${HADOOP_CONF_DIR} ${HADOOP_PREFIX}/etc/hadoop
fi
ln -sf ${HADOOP_CONF_DIR}/hadoop-env.sh /etc/default/hadoop-env.sh
if [ -d /etc/profile.d ]; then
ln -sf ${HADOOP_CONF_DIR}/hadoop-env.sh /etc/profile.d/hadoop-env.sh
fi
mkdir -p ${HADOOP_LOG_DIR}
chown root:hadoop ${HADOOP_LOG_DIR}