Hello!
I'm running Plesk 10.2.0 on Ubuntu 10.04 TLS.
Since first day the administrator gets the following email from 60sa-update:
http://www.codarbyte.de/2011/01/ple...n-daily60sa-update-exited-with-return-code-1/
but it doesn't match with my problem.
My 60sa-update looks like this:
Is there anyone who understand this error and has a solution for me?! It would be great!
Thanks!
I'm running Plesk 10.2.0 on Ubuntu 10.04 TLS.
Since first day the administrator gets the following email from 60sa-update:
I've found only this possible solutionCron <root@your_server> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/60sa-update:
[: 13: 1: unexpected operator
[: 18: 1: unexpected operator
run-parts: /etc/cron.daily/60sa-update exited with return code 1
http://www.codarbyte.de/2011/01/ple...n-daily60sa-update-exited-with-return-code-1/
but it doesn't match with my problem.
My 60sa-update looks like this:
#!/bin/sh
/usr/bin/sa-update
ERR=$?
# Only restart spamd if sa-update returns 0, meaning it updated the rules
if [ $ERR == 0 ]; then
/usr/bin/sa-update && { /etc/init.d/psa-spamassassin restart >> /var/log/sa-update.log; } \
|| { rc=$?; [ $rc -eq 1 ] && exit 0 || exit $rc; };
# /etc/init.d/psa-spamassassin restart | tee -a /var/log/sa-update.log;
fi
# if sa-update returns 1 when there are no updates
if [ $ERR == 1 ]; then
exit 0;
fi
exit $ERR
Is there anyone who understand this error and has a solution for me?! It would be great!
Thanks!