Browse Source

07env-install-centos.sh

lizw 2 years ago
parent
commit
edece61f62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      00base/07env-install-centos.sh

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

@@ -240,7 +240,7 @@ function init:add_user() {
   if [ \`grep -c '$add_sudoers' '/etc/sudoers'\` == '0' ];then
     # 新增修改权限
     chmod -v u+w /etc/sudoers
-    echo -e \"\n$add_sudoers\n\" >> /etc/sudoers
+    echo -e \"$add_sudoers\" >> /etc/sudoers
     # 收回修改权限
     chmod -v u-w /etc/sudoers
   fi