Write .htaccess also from CLI
Write .htaccess also from CLI

The new updater as shipped with ownCloud 9.0.x invokes `occ` via `shell_exec`. This means that the `\OC::$CLI` code is used when updating.

This removes the manual `.htaccess` modifications, effectively leading to the fact that URLs without index.php in it stop working. This also affects share URLs which could be considered a rather serious regression.

- User installs 9.0.0 via web
- User shares /s/1234
- User updates to 9.0.1 via ownCloud updater
- Link to /s/1234 is broken, /index.php/s/1234 works

michaelletzgus/nextcloud-server,xx621998xx/server,xx621998xx/server,whitekiba/server,IljaN/core,cernbox/core,pixelipo/server,phil-davis/core,pmattern/server,IljaN/core,andreas-p/nextcloud-server,michaelletzgus/nextcloud-server,andreas-p/nextcloud-server,owncloud/core,nextcloud/server,endsguy/server,IljaN/core,pixelipo/server,bluelml/core,xx621998xx/server,jbicha/server,sharidas/core,pmattern/server,jbicha/server,cernbox/core,xx621998xx/server,michaelletzgus/nextcloud-server,Ardinis/server,bluelml/core,pixelipo/server,endsguy/server,andreas-p/nextcloud-server,nextcloud/server,bluelml/core,pollopolea/core,Ardinis/server,cernbox/core,jbicha/server,pixelipo/server,whitekiba/server,jbicha/server,andreas-p/nextcloud-server,bluelml/core,owncloud/core,xx621998xx/server,nextcloud/server,Ardinis/server,whitekiba/server,owncloud/core,pollopolea/core,owncloud/core,pollopolea/core,whitekiba/server,endsguy/server,endsguy/server,whitekiba/server,sharidas/core,bluelml/core,nextcloud/server,cernbox/core,sharidas/core,Ardinis/server,sharidas/core,pmattern/server,endsguy/server,pmattern/server,andreas-p/nextcloud-server,IljaN/core,cernbox/core,Ardinis/server,jbicha/server,IljaN/core,sharidas/core,pmattern/server,pollopolea/core,pollopolea/core,pixelipo/server,owncloud/core,michaelletzgus/nextcloud-server