From f7cb232dabf70332b71a5e9d727029567968e1c8 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Fri, 20 Jan 2023 12:14:34 +0100 Subject: [PATCH] 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: - https://github.com/nextcloud/server/issues/26109 - https://github.com/nextcloud/documentation/issues/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 --- admin_manual/installation/command_line_installation.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/admin_manual/installation/command_line_installation.rst b/admin_manual/installation/command_line_installation.rst index cf0c01e1fe0..370fbc7fe5d 100644 --- a/admin_manual/installation/command_line_installation.rst +++ b/admin_manual/installation/command_line_installation.rst @@ -19,14 +19,15 @@ this example for Debian/Ubuntu. You must run ``occ`` as your HTTP user; see of running the graphical Installation Wizard:: $ cd /var/www/nextcloud/ - $ sudo -u www-data php occ maintenance:install --database \ - "mysql" --database-name "nextcloud" --database-user "root" --database-pass \ - "password" --admin-user "admin" --admin-pass "password" + $ sudo -u www-data php occ maintenance:install \ + --database='mysql' --database-name='nextcloud' \ + --database-user='root' --database-pass='password' \ + --admin-user='admin' --admin-pass='password' Nextcloud is not installed - only a limited number of commands are available Nextcloud was successfully installed Note that you must change to the root Nextcloud directory, as in the example -above, to run ``occ maintenance:install``, or the installation will fail with +above, to run ``occ maintenance:install``, or the installation will fail with a PHP fatal error message. Supported databases are::