get nextcloud uid and gid

This commit is contained in:
Danilo Reyes 2025-06-06 08:48:42 -06:00
parent 597d0bfca2
commit 1b35e46f1e

View File

@ -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