changed upgrade.sh for cronjob