X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 12595DC0E7D for ; Mon, 18 Jan 2016 19:35:59 +0000 (UTC) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D4B03DC0342 for ; Mon, 18 Jan 2016 19:35:57 +0000 (UTC) Received: from piha.riseup.net (unknown [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id F16961A1D2A for ; Mon, 18 Jan 2016 19:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1453145757; bh=mnOPf9t4K/XNVpN1Z895wHKdOI0/YOmu3eDAtCf8WIw=; h=From:Subject:To:Date:From; b=Zmgh7zPfd/bWKalZJjAEqaaOGJuYXLIiPM2mWqU9scJZIEUJKJJ9lpdyqRZdVH383 x8Fbcs8+Y1uCMkKOcgyv3v2j0wqFR8ZqLEXZGxqHmA8f+2hhPpPbLI2noiRcaX9p0g EWYPk1zOW7mJcxqLbbKS6UOisW3bJKz207vPChRI= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: roger.newman) with ESMTPSA id 6D1E11C007A From: Roger Newman Subject: [alpine-devel] [PATCH] postfix: fix error in pre-install script To: Alpine-devel X-Enigmail-Draft-Status: N1110 Message-ID: <569D3E79.6060709@riseup.net> Date: Mon, 18 Jan 2016 20:35:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean X-Virus-Scanned: ClamAV using ClamSMTP The following patch fixes the a problem using 'adduser' with two groups at the same time, which results in not creating the user 'postfix'. This ends up in not being able to start postfix until the user is created or another one is set in postfix-config. diff --git a/main/postfix/postfix.pre-install b/main/postfix/postfix.pre-install index f004ff6..1a5afb3 100644 --- a/main/postfix/postfix.pre-install +++ b/main/postfix/postfix.pre-install @@ -2,7 +2,8 @@ addgroup -S postfix 2>/dev/null addgroup -S postdrop 2>/dev/null -adduser -S -h /var/spool/postfix -G postfix,mail postfix 2>/dev/null +adduser -S -h /var/spool/postfix -G postfix postfix 2>/dev/null +addgroup postfix mail adduser -S -H -s /sbin/nologin -h /var/mail/domains -G postdrop vmail 2>/dev/null -- - Roger Newman - --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---