File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 6464 # create a share per Nextcloud user
6565 local USERS=()
6666 while read -r path; do
67- USERS+=( " $( basename $( dirname " $path " ) ) " )
67+ USERS+=( " $( basename " $( dirname " $path " ) " ) " )
6868 done < <( ls -d " $DATADIR " /* /files )
6969
70- for user in ${USERS[@]} ; do
70+ for user in " ${USERS[@]} " ; do
7171 # Exclude users not matching group filter (if enabled)
7272 if [[ -n " $FILTER_BY_GROUP " ]] \
7373 && [[ -z " $( ncc user:info " $user " --output=json | jq " .groups[] | select( . == \" ${FILTER_BY_GROUP} \" )" ) " ]]
9898
9999 # # create user with no login if it doesn't exist
100100 id " $user " & > /dev/null || adduser --disabled-password --force-badname --gecos " " " $user " || return 1
101- echo -e " $PWD \n$PWD " | smbpasswd -s -a $ user
101+ echo -e " $PWD \n$PWD " | smbpasswd -s -a " ${ user} "
102102
103- usermod -aG www-data $ user
104- sudo chmod g+w $ DIR
103+ usermod -aG www-data " ${ user} "
104+ sudo chmod g+w " ${ DIR} "
105105 done
106106
107107 update-rc.d smbd defaults
Original file line number Diff line number Diff line change 11
2- [ v1.46.1] ( https://github.com/nextcloud/nextcloudpi/commit/6f3bfb1 ) (2022-03-02) nc-datadir: include dotfiles
2+ [ v1.46.2] ( https://github.com/nextcloud/nextcloudpi/commit/6f53314 ) (2022-03-02) samba: fix usernames with spaces
3+
4+ [ v1.46.1] ( https://github.com/nextcloud/nextcloudpi/commit/b4ef137 ) (2022-03-02) nc-datadir: include dotfiles
35
46[ v1.46.0 ] ( https://github.com/nextcloud/nextcloudpi/commit/2b59e26 ) (2022-03-01) upgrade to NC23.0.2
57
You can’t perform that action at this time.
0 commit comments