• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

60sa-update error message every night

xxx

Basic Pleskian
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:
Cron <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
I've found only this possible solution
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!
 
Good morning, Igor.
Thanks for your reply. I've searched before posting and I've also found your KB article. But for me it seems that this is not the same error. I have changed the first line of 60--update to bin/bash and will se what happens.
Thanks!
 
Back
Top