Skip to content

Commit 36e71e4

Browse files
committed
Use --option=value version for occ maintenance:install
The `--option=value` version of passing options to the `occ maintenance:install` command is now used in the documentation, instead of the `--option value` variant. This solves issues with leading dashes in values, especially passwords. It also matches the `occ help maintenance:install` output. Solves: - nextcloud/server#26109 - #8190 Furthermore values are now single quoted, which is important to avoid variable expansion and special treatment of the backlash character in random passwords, and a doubled space was removed. Signed-off-by: MichaIng <micha@dietpi.com>
1 parent 8b0fbe1 commit 36e71e4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

admin_manual/installation/command_line_installation.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ this example for Debian/Ubuntu. You must run ``occ`` as your HTTP user; see
1919
of running the graphical Installation Wizard::
2020

2121
$ cd /var/www/nextcloud/
22-
$ sudo -u www-data php occ maintenance:install --database \
23-
"mysql" --database-name "nextcloud" --database-user "root" --database-pass \
24-
"password" --admin-user "admin" --admin-pass "password"
22+
$ sudo -u www-data php occ maintenance:install \
23+
--database='mysql' --database-name='nextcloud' \
24+
--database-user='root' --database-pass='password' \
25+
--admin-user='admin' --admin-pass='password'
2526
Nextcloud is not installed - only a limited number of commands are available
2627
Nextcloud was successfully installed
2728
2829
Note that you must change to the root Nextcloud directory, as in the example
29-
above, to run ``occ maintenance:install``, or the installation will fail with
30+
above, to run ``occ maintenance:install``, or the installation will fail with
3031
a PHP fatal error message.
3132

3233
Supported databases are::

0 commit comments

Comments
 (0)