mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
nextcloud: fix chown
This commit is contained in:
parent
8ec09b74a0
commit
4859a5e5f2
@ -13,7 +13,7 @@ ln -sf /apps2 /nextcloud &>/dev/null
|
|||||||
mv nextcloud fix && mv fix nextcloud # fix strange bug
|
mv nextcloud fix && mv fix nextcloud # fix strange bug
|
||||||
|
|
||||||
echo "Updating permissions..."
|
echo "Updating permissions..."
|
||||||
for dir in /nextcloud/config /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /var/lib/redis /tmp /etc/s6.d; do
|
for dir in /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /var/lib/redis /tmp /etc/s6.d; do
|
||||||
if $(find $dir ! -user $UID -o ! -group $GID|egrep '.' -q); then
|
if $(find $dir ! -user $UID -o ! -group $GID|egrep '.' -q); then
|
||||||
echo "Updating permissions in $dir..."
|
echo "Updating permissions in $dir..."
|
||||||
chown -R $UID:$GID $dir
|
chown -R $UID:$GID $dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user