|
@@ -376,7 +376,7 @@ function init:java() {
|
|
cd ${BASE_DIR}/java
|
|
cd ${BASE_DIR}/java
|
|
tar -zxvf ${JDK_FILE_NAME}
|
|
tar -zxvf ${JDK_FILE_NAME}
|
|
fi
|
|
fi
|
|
- if [ \`grep -c '$add_profile' '/etc/sudoers'\` == '0' ];then
|
|
|
|
|
|
+ if [ \`grep -c '$add_profile' '/etc/profile'\` == '0' ];then
|
|
echo '$add_profile' >> /etc/profile
|
|
echo '$add_profile' >> /etc/profile
|
|
source /etc/profile
|
|
source /etc/profile
|
|
fi
|
|
fi
|