triggerpostun - coś nie działa
Jakub Bogusz
qboosh w pld-linux.org
Pon, 3 Sty 2005, 23:35:33 CET
On Mon, Jan 03, 2005 at 10:25:33PM +0100, Andrzej Zawadzki wrote:
> Chciałem do ddclient.spec dodać triggera, który plik /etc/ddclient.conf
> przy aktualizacaji przeniesie do /etc/ddclient/ddclient.conf
> (bo tak autor programu chce :-)
>
> Ale mi nie działa, co robię źle?
>
> %triggerpostun -- ddclient < 3.6.5
> if [ -f /etc/ddclient.conf.rpmsave ]; then
> echo "Moving config and cache to new dir /etc/ddclient"
> mv -f /etc/ddclient/ddclient.conf
> /etc/ddclient/ddclient.conf.rpmnew
> mv -f /etc/ddclient.conf.rpmsave /etc/ddclient/ddclient.conf
> mv -f /etc/ddclient.cache /etc/ddclient/
> fi
>
> Upgrade robie z wersji 3.6.3.
Prawdopodobnie robisz z wersji 1:3.6.3 (czyli > 3.6.5).
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
Więcej informacji o liście dyskusyjnej pld-devel-pl