DEVOPS-879 Update init script template with more control logic