Parcourir la source

07env-install-centos.sh

lizw il y a 2 ans
Parent
commit
c12b503f4f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      00base/07env-install-centos.sh

+ 1 - 1
00base/07env-install-centos.sh

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