* [Comm] Изменение конфига при %post
@ 2005-12-09 12:47 Slava Dubrovskiy
2005-12-10 15:15 ` [Comm] " Michael Shigorin
0 siblings, 1 reply; 2+ messages in thread
From: Slava Dubrovskiy @ 2005-12-09 12:47 UTC (permalink / raw)
To: ALT Linux Community
Здравствуйте.
Подскажите как правильно сделать. Необходимо, чтобы при установке
пакета, он дописал что-то в определённое место конфига.
Например изменил /etc/logrotate.d/squid
с такого:
/var/log/squid/access.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
на такой:
/var/log/squid/access.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
postrotate
/usr/bin/program
endscript
}
При этом я знаю точно, что первая строчка есть, а вот в остальных не уверен.
Вопрос: что для этого использовать и как? Подскажите пример spec'а?
Спасибо.
--
С уважением,
Дубровский Вячеслав.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Comm] Re: Изменение конфига при %post
2005-12-09 12:47 [Comm] Изменение конфига при %post Slava Dubrovskiy
@ 2005-12-10 15:15 ` Michael Shigorin
0 siblings, 0 replies; 2+ messages in thread
From: Michael Shigorin @ 2005-12-10 15:15 UTC (permalink / raw)
To: ALT Linux Community
On Fri, Dec 09, 2005 at 02:47:04PM +0200, Slava Dubrovskiy wrote:
> Подскажите как правильно сделать. Необходимо, чтобы при
> установке пакета, он дописал что-то в определённое место
> конфига. Например изменил /etc/logrotate.d/squid
В чужой пакет лучше не лезть :(
Лучше попросить его майнтейнера изобразить хук -- например,
изменить пакетный конфиг и сделать программку, которая запустит
все скрипты из какого /etc/squid/logscript.d/
> postrotate
> /usr/bin/program
> endscript
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-10 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 12:47 [Comm] Изменение конфига при %post Slava Dubrovskiy
2005-12-10 15:15 ` [Comm] " Michael Shigorin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git