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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2019-04-06 14:50:15 +0300
committerGitHub <noreply@github.com>2019-04-06 14:50:15 +0300
commit71104d55237c82d50ff5a3b17285d00eed201d8c (patch)
treeca2d24221963e59a1f0672bd6c73683a3421c6d9
parent592ec6fdc948a3bb226e9de9aa40df83cb8081c1 (diff)
fix #795 (#811)15.0.6
-rw-r--r--static/setup_secure_permissions_nextcloud.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/static/setup_secure_permissions_nextcloud.sh b/static/setup_secure_permissions_nextcloud.sh
index 4f549143..95330dc2 100644
--- a/static/setup_secure_permissions_nextcloud.sh
+++ b/static/setup_secure_permissions_nextcloud.sh
@@ -2,7 +2,7 @@
# T&M Hansson IT AB © - 2019, https://www.hanssonit.se/
-# shellcheck disable=2034,2059
+# shellcheck disable=2034,2059,2012
true
# shellcheck source=lib.sh
. <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
@@ -30,9 +30,12 @@ printf "chown Directories\n"
chown -R ${rootuser}:${htgroup} ${NCPATH}/
chown -R ${htuser}:${htgroup} ${NCPATH}/apps/
chown -R ${htuser}:${htgroup} ${NCPATH}/config/
-chown -R ${htuser}:${htgroup} ${NCDATA}/
chown -R ${htuser}:${htgroup} ${NCPATH}/themes/
chown -R ${htuser}:${htgroup} ${NCPATH}/updater/
+if ! [ "$(ls -ld ${NCDATA} | awk '{print$3$4}')" == ${htuser}${htgroup} ]
+then
+ chown -R ${htuser}:${htgroup} ${NCDATA}/
+fi
chmod +x ${NCPATH}/occ