Even better, as this is callable when a package gets installed, right? So you can preset that, create a dummy 'admin' account and instruct the user to change the admin password afterwards...
Thanks! On Fri, Dec 18, 2015 at 2:19 PM, Morris Jobke <[email protected]> wrote: > Hey, > > the autoconfig.php feature was the old way of provisioning the owncloud setup. > > Since 8.1 there is an install command build into occ: > > https://doc.owncloud.org/server/8.2/admin_manual/configuration_server/occ_command.html#command-line-installation > > Please use this instead, because it’s more powerful and also has determined > execution results. And you don’t need to load the page to install owncloud, > but can fire this and it will be installed. > > We also use this extensively in our testing environments to provision > owncloud instances. ;) > > Cheers > Morris > >> Am 18.12.2015 um 13:48 schrieb Johan Ouwerkerk <[email protected]>: >> >> So for all the other folks working on their RPi proposals, take a look >> at: <owncloud_root>/config/autoconfig.php file. >> https://doc.owncloud.org/server/7.0/admin_manual/configuration/automatic_configuration.html >> >> This allows you to prepopulate the initial set up page form (indeed, >> values that you preset will be hidden in the form from the end-user) >> of owncloud. >> What this script should do is define an associative array called >> $AUTOCONFIG with keys mirroring those found in the $CONFIG array. >> >> And that's hugely useful because for everybody looking to do a >> end-user friendly image, you can use this to tie owncloud config to >> partitioning scheme to DB config. >> For example: >> >> <?php >> /* >> * Auto-configuration snippet to set up owncloud with postgresql by default. >> */ >> $AUTOCONFIG = array ( >> "dbname" => "owncloud", >> /* >> * Example snippets from the owncloud admin guide/documentation >> suggest it should be "datadirectory", >> * but, whatever the case, the Debian owncloud package uses the >> 'directory' key instead. >> */ >> "directory" => "/srv/owncloud/data", // where user data will be >> stored; should point to the md array partition. >> /* >> * On Debian (and derivative) systems postgresql will run with >> peer authentication set up by default. >> * Apache2 runs as the www-data user, owncloud will be run with >> apache2 -> dbuser = apache2 >> */ >> "dbuser" => "www-data", >> "dbpassword" => "", // irrelevant >> "dbhost" => "/var/run/postgresql", // necessary to make >> owncloud use the local Unix socket. >> "dbtableprefix" => "oc_", // probably not necessary, but can't >> hurt to namespace owncloud tables anyway. >> "dbtype" => "pgsql", >> ); >> ?> >> >> This snippet put in /etc/owncloud/autoconfig.php on a Debian >> installation will ensure that the user can still set up the admin >> account username + password, but nothing else and >> deploy owncloud to a preconfigured owncloud DB running on postgresql. >> It also sets up login info (the default postgresql auth method is >> 'peer' which means that it does auto log in >> based on what is effectively a reference to the system user account). >> _______________________________________________ >> Devel mailing list >> [email protected] >> http://mailman.owncloud.org/mailman/listinfo/devel > > -- > ownCloud GmbH - owncloud.com > > Your Data, Your Cloud, Your Way! > > ownCloud GmbH, GF: Markus Rex, Holger Dyroff, Frank Karlitschek > Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg) > > > _______________________________________________ > Devel mailing list > [email protected] > http://mailman.owncloud.org/mailman/listinfo/devel _______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
