get nextcloud uid and gid
This commit is contained in:
parent
597d0bfca2
commit
1b35e46f1e
@ -44,12 +44,12 @@ for user in "$@"; do
|
||||
|
||||
find ./ -mindepth 1 -type d -empty -delete
|
||||
|
||||
chown 990:990 -R "$destDir"
|
||||
chown "$(id -u nextcloud)":"$(id -g nextcloud)" -R "$destDir"
|
||||
find "$destDir" -type d -exec chmod -R 755 {} \;
|
||||
find "$destDir" -type f -exec chmod -R 644 {} \;
|
||||
|
||||
if [ -d "$destDirDup" ]; then
|
||||
chown 987:988 -R "$destDirDup"
|
||||
chown "$(id -u nextcloud)":"$(id -g nextcloud)" -R "$destDir"
|
||||
find "$destDirDup" -type d -exec chmod -R 755 {} \;
|
||||
find "$destDirDup" -type f -exec chmod -R 644 {} \;
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user