On Wed, 6 Aug 2008 09:46:19 +0200 Gregory Machin wrote:
%post
# Define LOG FILE
LOGFILE=/root/ks_postinstall.log
export LOGFILE
touch $LOGFILE
/bin/rpm -Uvh http://192.168.2.203/devel/courier-imap/courier-imap-4.3.1-1.8.x86_64.rpm >> $LOGFILE 2>&1
.. other commands redirecting stdout and stderr with same syntax as line above
and then after reboot you can check your /root/ks_postinstall.log file for errors
HIH,
Gianluca
> I'm trying to install an rpm in the %post section of the installYou can try to insert in your %post section something like this:
%post
# Define LOG FILE
LOGFILE=/root/ks_postinstall.log
export LOGFILE
touch $LOGFILE
/bin/rpm -Uvh http://192.168.2.203/devel/courier-imap/courier-imap-4.3.1-1.8.x86_64.rpm >> $LOGFILE 2>&1
.. other commands redirecting stdout and stderr with same syntax as line above
and then after reboot you can check your /root/ks_postinstall.log file for errors
HIH,
Gianluca
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list