Date: Tue, 1 Jul 2014 16:40:38 +0200 From: Tijl Coosemans <tijl@FreeBSD.org> To: Dmitry Sivachenko <trtrmitya@gmail.com> Cc: "ports@freebsd.org Ports" <ports@freebsd.org> Subject: Re: problem with @exec in pkg-plist Message-ID: <20140701164038.293a0819@kalimero.tijl.coosemans.org> In-Reply-To: <5BB0CB32-A70C-4B8F-B10B-BD410DB326A8@gmail.com> References: <5BB0CB32-A70C-4B8F-B10B-BD410DB326A8@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 1 Jul 2014 17:42:07 +0400 Dmitry Sivachenko wrote: > Hello! >=20 > I have the following line in my pkg-plist: >=20 > @exec install -d -o root -g %%HADOOP_GROUP%% -m 0775 %%HADOOP_LOGDIR%% >=20 > After installation, directory is created without write access for group: >=20 > # ls -la /var/log/hadoop/ > total 4 > drwxr-xr-x 2 root hadoop 512 1 =D0=B8=D1=8E=D0=BB 17:39 . >=20 >=20 > What am I missing? Replace "rmdir" with "rm -d" on this line: @unexec rmdir %%HADOOP_LOGDIR%% 2>/dev/null || true The new pkg treats @dirrm and @dirrmtry as directory entries that, like file entries, can have their own owner, group and mode. But, to support the old pkg_install @dirrmtry is implemented as @unexec rmdir, so pkg treats @unexec rmdir as a regular directory entry too.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140701164038.293a0819>