nextcloud / nextcloud/server

Add `autoconfig.php` support to `occ maintenance:install`

Open
#8,524 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: install and update feature: occ
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Currently,

occ maintenance:install

does not make use of autoconfig.php. Instead, all parameters must be specified on command line. It would be nice if occ install behaviour was consistent with "first visit" installation and used autoconfig.php if it is available, not to mention security implications (such as not needing to specify password on command line).

NextCloud version 13.0.0

-cM.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the occ maintenance:install entry point and compare its behavior with the first-visit installation flow that reads autoconfig.php. Determine how an available autoconfig.php should supply installation parameters and verify that command-line passwords are no longer required in that case. Done means CLI installation uses the configuration file consistently and preserves the existing installation behavior when it is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.