The postuninstall script has a problem with the last statement, "mv:
missing file argument", that prevents the package to be upgraded
successfully

[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
rpm -qp --scripts anonftp-3.0-1mdk.i586.rpm
postinstall script (through /bin/sh):
cat /etc/ftpaccess | grep -v class > $RPM_BUILD_ROOT/etc/ftpaccess.mdk
echo "class all real,guest,anonymous  *" > $RPM_BUILD_ROOT/etc/ftpaccess

cat $RPM_BUILD_ROOT/etc/ftpaccess.mdk >> $RPM_BUILD_ROOT/etc/ftpaccess
rm $RPM_BUILD_ROOT/etc/ftpaccess.mdk
postuninstall script (through /bin/sh):
cat /etc/ftpaccess | grep -v class > $RPM_BUILD_ROOT/etc/ftpaccess.mdk
mv $RPM_BUILD_ROOT/etc/ftpaccess.mdk > $RPM_BUILD_ROOT/etc/ftpaccess
[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
--
Eugenio Diaz, BSEE/BSCE
Linux Engineer
[EMAIL PROTECTED]


Reply via email to