Import original script from https://github.com/gildegoma/redmine/