mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Fix typo
This commit is contained in:
parent
c5b9c06d0e
commit
cd6ecf309d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user