From edece61f626431648a896ec7d3978a1d90db4639 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Sun, 30 Oct 2022 17:12:26 +0800 Subject: [PATCH] 07env-install-centos.sh --- 00base/07env-install-centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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