Jo De Troy wrote:
Hello,I wanted to upgrade from fedora-ds-1.0.1 on CentOS4 to the latest release 1.0.2 and I got:root# rpm -Uvh fedora-ds-1.0.2-1.RHEL4.i386.opt.rpmerror: %pre(fedora-ds-1.0.2-1.RHEL4.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping fedora-ds-1.0.2-1.RHEL4Any ideas?
This is the %pre section: # in case upgrade, need to shutdown the servers before the installation ls $RPM_INSTALL_PREFIX/slapd-* > /dev/null 2>&1 if [ $? -eq 0 ]; then for instance in `ls -d $RPM_INSTALL_PREFIX/slapd-*` do if [ -f $instance/logs/pid ]; then pid=`cat $instance/logs/pid` psval=`ps -ef | egrep $pid` if [ "$psval" != "" ]; then $instance/stop-slapd fi fi done fi if [ -f $RPM_INSTALL_PREFIX/admin-serv/logs/pid ]; then pid=`cat $RPM_INSTALL_PREFIX/admin-serv/logs/pid` psval=`ps -ef | egrep $pid` if [ "$psval" != "" ]; then $RPM_INSTALL_PREFIX/stop-admin fi fiSo, I'm not sure, perhaps your servers are not running, or they are reporting some error attempting to stop them. If they are not running, and you don't wan't to or can't start them, try just removing the pid files referenced above.
Best Regards, Jo ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-directory-users
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
-- Fedora-directory-users mailing list Fedora-directory-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-directory-users