Take advantage of the version of the installer script in openemr/openemr#8618. The changes are backwards and forwards-compatible.