From cd6ecf309d8bccc94f8d7d89d2a4e4d2be9e359e Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 21 Jun 2016 14:18:31 +0200 Subject: [PATCH] Fix typo --- .../installation/installation_wizard.rst | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/admin_manual/installation/installation_wizard.rst b/admin_manual/installation/installation_wizard.rst index a12cb8c75..3c0626a3a 100644 --- a/admin_manual/installation/installation_wizard.rst +++ b/admin_manual/installation/installation_wizard.rst @@ -142,45 +142,45 @@ use :ref:`label-phpinfo` (Look for the **User/Group** line). lost. The easy way to set the correct permissions is to copy and run this script. -Replace the ``dcpath`` variable with the path to your Nextcloud directory, and +Replace the ``ncpath`` variable with the path to your Nextcloud directory, and replace the ``htuser`` and ``htgroup`` variables with your HTTP user and group:: #!/bin/bash - dcpath='/var/www/nextcloud' + ncpath='/var/www/nextcloud' htuser='www-data' htgroup='www-data' rootuser='root' printf "Creating possible missing Directories\n" - mkdir -p $dcpath/data - mkdir -p $dcpath/assets - mkdir -p $dcpath/updater + mkdir -p $ncpath/data + mkdir -p $ncpath/assets + mkdir -p $ncpath/updater printf "chmod Files and Directories\n" find ${ncpath}/ -type f -print0 | xargs -0 chmod 0640 find ${ncpath}/ -type d -print0 | xargs -0 chmod 0750 printf "chown Directories\n" - chown -R ${rootuser}:${htgroup} ${dcpath}/ - chown -R ${htuser}:${htgroup} ${dcpath}/apps/ - chown -R ${htuser}:${htgroup} ${dcpath}/assets/ - chown -R ${htuser}:${htgroup} ${dcpath}/config/ - chown -R ${htuser}:${htgroup} ${dcpath}/data/ - chown -R ${htuser}:${htgroup} ${dcpath}/themes/ - chown -R ${htuser}:${htgroup} ${dcpath}/updater/ + chown -R ${rootuser}:${htgroup} ${ncpath}/ + chown -R ${htuser}:${htgroup} ${ncpath}/apps/ + chown -R ${htuser}:${htgroup} ${ncpath}/assets/ + chown -R ${htuser}:${htgroup} ${ncpath}/config/ + chown -R ${htuser}:${htgroup} ${ncpath}/data/ + chown -R ${htuser}:${htgroup} ${ncpath}/themes/ + chown -R ${htuser}:${htgroup} ${ncpath}/updater/ - chmod +x ${dcpath}/occ + chmod +x ${ncpath}/occ printf "chmod/chown .htaccess\n" - if [ -f ${dcpath}/.htaccess ] + if [ -f ${ncpath}/.htaccess ] then - chmod 0644 ${dcpath}/.htaccess - chown ${rootuser}:${htgroup} ${dcpath}/.htaccess + chmod 0644 ${ncpath}/.htaccess + chown ${rootuser}:${htgroup} ${ncpath}/.htaccess fi - if [ -f ${dcpath}/data/.htaccess ] + if [ -f ${ncpath}/data/.htaccess ] then - chmod 0644 ${dcpath}/data/.htaccess - chown ${rootuser}:${htgroup} ${dcpath}/data/.htaccess + chmod 0644 ${ncpath}/data/.htaccess + chown ${rootuser}:${htgroup} ${ncpath}/data/.htaccess fi If you have customized your Nextcloud installation and your filepaths are