diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index b497a56..810b697 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 \"$add_sudoers\" >> /etc/sudoers + echo -e '$add_sudoers' >> /etc/sudoers # 收回修改权限 chmod -v u-w /etc/sudoers fi