X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 0F5C3DC0084; Wed, 26 Nov 2014 12:14:01 +0000 (UTC) Date: Wed, 26 Nov 2014 13:13:58 +0100 From: Natanael Copa To: k0r10n Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] main/backuppc: Added initd script, small fixes and cleaned up Message-ID: <20141126131358.1021ce6f@ncopa-desktop.alpinelinux.org> In-Reply-To: <1416978065-2557-1-git-send-email-k0r10n.dev@gmail.com> References: <1416978065-2557-1-git-send-email-k0r10n.dev@gmail.com> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.23; x86_64-alpine-linux-musl) 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=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 26 Nov 2014 09:01:05 +0400 k0r10n wrote: > --- > main/backuppc/APKBUILD | 38 ++++++++++++++++++++++++------------- > main/backuppc/backuppc.initd | 4 ++++ > main/backuppc/backuppc.post-install | 4 ++-- > main/backuppc/configure.pl.patch | 4 ++-- > 4 files changed, 33 insertions(+), 17 deletions(-) > I have a few questions below. ... > --- a/main/backuppc/backuppc.post-install > +++ b/main/backuppc/backuppc.post-install > @@ -1,7 +1,7 @@ > #!/bin/sh > -for dir in /etc /var/log /var/lib > +for dir in /etc /var/log /var/lib /usr/lib > do > chown -R backuppc.backuppc ${dir}/BackupPC &>/dev/null > done permissions of files should be set in the .apk itself and not in post-install. Only exception is /var/run and /run which should be set from init.d script with 'checkpath' Other question is, why does /usr/lib/BackupPC be owned by backuppc user? /usr should generally be considered as read-only area. > > -ln -s /var/www/htdocs/BackupPC/index.cgi /var/www/cgi-bin/BackupPC_Admin &>/dev/null > +ln -s /var/www/cgi-bin/BackupPC_Admin /var/www/htdocs/BackupPC/index.cgi &>/dev/null Symlinks should generally be created in .apk and not in post-install. Is it possible to get rid of the post-install script? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---