diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index f87aed9..47477fd 100644 --- a/00base/07env-install-centos.sh +++ b/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