script for auto-updating owncloud