Merge pull request #15 from horakmar/publish_update_script

Rewrite update script