From 5578491c349ee773f2a4c23a151a1b822d062e4c Mon Sep 17 00:00:00 2001 From: smail Date: Sat, 17 Oct 2026 00:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E8=84=9A=E6=9C=AC=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=9A=E7=A7=BB=E9=99=A4=E7=8B=AC=E7=AB=8B=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=94=A8=E6=88=B7=EF=BC=8C=E7=BB=9F=E4=B8=80=E4=BD=BF?= =?UTF-8?q?=E7=94=A8smail=E8=BF=90=E8=A1=8C=E8=BA=AB=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/install-systemd.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy/install-systemd.sh b/deploy/install-systemd.sh index 5b58be63..f589d2fe 100644 --- a/deploy/install-systemd.sh +++ b/deploy/install-systemd.sh @@ -160,8 +160,6 @@ fi if ! getent group smail >/dev/null; then groupadd --system smail; fi if ! getent passwd smail >/dev/null; then useradd --system --gid smail --home-dir "$runtime_dir" --shell /usr/sbin/nologin smail; fi -if ! getent group smail-plugin >/dev/null; then groupadd --system smail-plugin; fi -if ! getent passwd smail-plugin >/dev/null; then useradd --system --gid smail-plugin --home-dir /nonexistent --shell /usr/sbin/nologin smail-plugin; fi install -d -o smail -g smail -m 0755 "$runtime_dir" chown smail:smail "$runtime_dir" install -d -o root -g root -m 0750 /etc/smail @@ -171,10 +169,10 @@ if [ ! -e /etc/smail/smail.env ]; then printf '%s\n' "SMAIL_ROOT=$runtime_dir" 'GOMEMLIMIT=256MiB' > /etc/smail/smail.env fi if ! grep -q '^SMAIL_PLUGIN_UID=' /etc/smail/smail.env; then - printf 'SMAIL_PLUGIN_UID=%s\n' "$(id -u smail-plugin)" >> /etc/smail/smail.env + printf 'SMAIL_PLUGIN_UID=%s\n' "$(id -u smail)" >> /etc/smail/smail.env fi if ! grep -q '^SMAIL_PLUGIN_GID=' /etc/smail/smail.env; then - printf 'SMAIL_PLUGIN_GID=%s\n' "$(id -g smail-plugin)" >> /etc/smail/smail.env + printf 'SMAIL_PLUGIN_GID=%s\n' "$(id -g smail)" >> /etc/smail/smail.env fi chown root:root /etc/smail/smail.env chmod 0600 /etc/smail/smail.env