Skip to content

Commit

Permalink
fix #795 (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 committed Apr 6, 2019
1 parent 592ec6f commit 71104d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions static/setup_secure_permissions_nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 71104d5

Please sign in to comment.