Suite Quick-Repair script

Hi

So i want to deploy Suite via CI/CD but i could not find a working quick repair script.
I have tried 2 both i found on the SugarCon blog. Both give me errors and i dont have the time to debug those now.

Has someone a working script i could use?

Velrest

Link to those scripts:
https://developer.sugarcrm.com/2013/08/23/yet-another-script-for-doing-quick-rebuild-and-repair/
https://gist.github.com/bickart/5468138