Removed setting "strong directory permissions", as it is not recommended by Nextcloud anymore

This commit is contained in:
DecaTec
2017-09-23 11:32:48 +02:00
parent f7117da82f
commit 22bc4b2e4b
3 changed files with 4 additions and 23 deletions

View File

@@ -142,4 +142,4 @@ fi
echo
echo "DONE!"
echo "Backup created: ${backupdir}"
echo "Backup created: ${backupdir}"

View File

@@ -145,8 +145,8 @@ echo
# Set directory permissions
#
echo "Setting directory permissions..."
chown -R "${webserverUser}" "${nextcloudFileDir}"
chown -R "${webserverUser}" "${nextcloudDataDir}"
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}"
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudDataDir}"
echo "Done"
echo
@@ -160,25 +160,6 @@ cd ~
echo "Done"
echo
#
# Restore hardened directory permissions
#
echo "Set hardened directory permissions..."
find "${nextcloudFileDir}" -type f -print0 | xargs -0 chmod 0640
find "${nextcloudFileDir}" -type d -print0 | xargs -0 chmod 0750
chown -R root:"${webserverUser}" "${nextcloudFileDir}"
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}/apps/"
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}/config/"
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}/themes/"
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudDataDir}"
chown root:"${webserverUser}" "${nextcloudFileDir}/.htaccess"
chown root:"${webserverUser}" "${nextcloudDataDir}/.htaccess"
chmod 0644 "${nextcloudFileDir}/.htaccess"
chmod 0644 "${nextcloudDataDir}/.htaccess"
echo "Done"
echo
#
# Disbale maintenance mode
#

View File

@@ -26,4 +26,4 @@ This will create a direcotry with the current time stamp in your main backup dir
## Restore
For restore, just call *NextcloudRestore.sh*. This script expects one parameter which is the name of the backup to be restored. In our example, this would be *20170910_132703* (the time stamp of the backup created before). So the full command for a restore would be *./NextcloudRestore.sh 20170910_132703*.
For restore, just call *NextcloudRestore.sh*. This script expects one parameter which is the name of the backup to be restored. In our example, this would be *20170910_132703* (the time stamp of the backup created before). So the full command for a restore would be *./NextcloudRestore.sh 20170910_132703*.