[Owncloud] How to partially predefine OC settings

Vladimir Sapronov vladimir.sapronov at gmail.com
Fri Aug 23 00:47:07 UTC 2013


Hi again, sorry for bothering with the same question.

Now I'm 100% sure that currently there's no way to keep "Finish Setup"
screen (for entering admin login/pass) and at the same time preset other
parameters from that screen (directory, dbtype, db host, dbname, dbuser,
dbpass).

I would like to provide this possibility and contribute to ownCloud. Could
someone give me some advises here:
1) Does what I want seem useless and even not worthy answering on the email
group?
2) Will such a change be merged to ownCloud master repository if properly
done?
3) There are few ways of making what I want, can anybody on the list
volunteer to discuss ways for improving chances to be merged?

Just once again shortly what I want to achieve: I want my users to see
"Finish Setup" screen on the first run, but I want to preset data folder
and database parameters myself.

How I see this will be used:
1) Admin put some config file (let's say installation-config.php) to config
folder.
2) The config/installation-config.php file might contain data folder
setting or database connection settings or both.
2) The core/templates/installation.php generates controls based on the
installation-config.php file, if there's no installation-config.php then
current "Finish Setup" page will be generated.

Thanks,
Vladimir Sapronov


On Mon, Aug 19, 2013 at 3:17 PM, Vladimir Sapronov <
vladimir.sapronov at gmail.com> wrote:

> Hi,
>
> Here I meant the main settings controlled from "Finish Setup" page. I
> don't want the admin-user to select storage type (MySQL) and credentials
> (to MySQL). But I still want the first admin-user to provide OC credentials
> and click "Finish Setup" button on the screen. How I can achieve that?
>
> I have checked the autoconfig.php way already. It's more "all or nothing"
> approach. Either I preset MySQL connection altogether with OC admin
> credentials and then there will be no "Finish Setup" screen, or if I omit
> adminlogin/adminpass the "Finish Setup" page appears without MySQL selected
> (as I provided in autoconfig.php).
>
> I might just go into installation.php and hardcode parameters there with
> removing selection from "Finish Setup" page, but I would rather use some
> more elegant way, if there's any...
>



-- 

Vladimir Sapronov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130822/de61e38b/attachment.html>


More information about the Owncloud mailing list