From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 Date: Thu, 21 May 2020 17:14:36 +0300 From: "Alexey V. Vissarionov" To: ALT Linux Team development discussions Message-ID: <20200521141436.GO32613@altlinux.org> References: <128511590007329@mail.yandex.ru> <20200521042827.GL32613@altlinux.org> <20200521140227.GA3601340@portlab> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200521140227.GA3601340@portlab> Subject: Re: [devel] =?koi8-r?b?SG9vay3JIMTM0SDSxcfJ09TSwcPJySBzaGVsbC3P1yDX?= =?koi8-r?b?IC9ldGMvc2hlbGw=?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2020 14:14:41 -0000 Archived-At: List-Archive: List-Post: On 2020-05-21 17:02:27 +0300, Vladimir D. Seleznev wrote: >> %postun >> sed -i -re '/^\/bin\/t\?csh/d' /etc/shells > В таком виде никуда не годится. Если удалять шелл при удалении > пакета, то обязательно с проверкой условия: > if [ $1 -eq 0 ]; then > Иначе запись о шелле удалится при обновлении пакета. > https://www.altlinux.org/SpecTips/triggers Буду обновлять - вообще %postun выкину... -- Alexey V. Vissarionov gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net