[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: umask in rpm scriptlets - yes or no?
- From: Mamoru Tasaka <mtasaka ioa s u-tokyo ac jp>
- To: Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Subject: Re: umask in rpm scriptlets - yes or no?
- Date: Sun, 04 Mar 2007 21:33:42 +0900
Michael Schwendt wrote:
Does anybody know whether anything has been decided on setting an
explicit "umask 022" at the beginning of scriptlets?
I don't know the example of 022, however for 133 I know
a example.
--------------------------------------------------------
[tasaka1 localhost i386]$ rpm -q --scripts fonts-japanese
postinstall scriptlet (using /bin/sh):
{
umask 133
touch /usr/share/fonts/japanese/TrueType 2> /dev/null && {
/usr/bin/ttmkfdir -d /usr/share/fonts/japanese/TrueType -o
/usr/share/fonts/japanese/TrueType/fonts.scale
mkfontdir /usr/share/fonts/japanese/TrueType
/usr/sbin/chkfontpath -q -a /usr/share/fonts/japanese/TrueType
}
mkfontdir /usr/share/fonts/japanese/misc && /usr/sbin/chkfontpath -q -a
/usr/share/fonts/japanese/misc
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache /usr/share/fonts
fi
}
postuninstall scriptlet (using /bin/sh):
<snip>
--------------------------------------------------------
Mamoru
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]