Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-04-27 01:12:56 +0300
committernachoparker <nacho@ownyourbits.com>2017-04-27 08:44:18 +0300
commit81a971a2aad1c672d46b43c14b1c9f938e898af9 (patch)
treed006518c44bee29b30983acc67ee5a9033d6177d
parent117f72abca4a0720474cc4f918e1850ec329037a (diff)
make file permissions permanent so there is no clash with updater app. See https://github.com/nextcloud/server/issues/4509
-rwxr-xr-xnextcloud.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/nextcloud.sh b/nextcloud.sh
index 402e5b02..e9228312 100755
--- a/nextcloud.sh
+++ b/nextcloud.sh
@@ -45,9 +45,7 @@ install()
find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750
printf "chown Directories\n"
- # recommended defaults do not play well with updater app
- # re-check this with every new version
- #chown -R ${rootuser}:${htgroup} ${ocpath}/
+
chown -R ${htuser}:${htgroup} ${ocpath}/
chown -R ${htuser}:${htgroup} ${ocpath}/apps/
chown -R ${htuser}:${htgroup} ${ocpath}/config/
@@ -60,9 +58,7 @@ install()
printf "chmod/chown .htaccess\n"
if [ -f ${ocpath}/.htaccess ]; then
- # breaks updater, see above
- #chmod 0644 ${ocpath}/.htaccess
- chmod 0664 ${ocpath}/.htaccess
+ chmod 0644 ${ocpath}/.htaccess
chown ${rootuser}:${htgroup} ${ocpath}/.htaccess
fi
if [ -f ${ocpath}/data/.htaccess ]; then