*PROBLEM*

rpm -U webmin-0.86-2mdk.i586.rpm
/var/tmp/rpm-tmp.97486: line 1: syntax error near unexpected token `if'
/var/tmp/rpm-tmp.97486: line 1: `if [ $1 = 1 ]; then /sbin/chkconfig --add webmin; 
else if [ -f /var/lock/subsys/webmin ]; then service webmin restart > /dev/null 
2>/dev/null || : ; fi; fi if [ "$1" != 1 ]; then'
error: execution of %post scriptlet from webmin-0.86-2mdk failed, exit status 2

*WORKAROUND*

--- webmin.spec Fri Jun 15 19:48:23 2001
+++ webmin.spec.fixed        Sat Jun 16 14:44:15 2001
@@ -87,6 +87,7 @@
 
 %post
 %_post_service webmin
+;
 if [ "$1" != 1 ]; then
        # Touch this file for smooth postinstall for next start/stop (due to 
DURING_INSTALL issue)
        if [ -d /etc/webmin ]; then                                              

*SOLUTION*
Fix %_post_service macro (?)

Arnd <><



Reply via email to