Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/nextcloudpi-config.d/samba.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/samba.sh b/etc/nextcloudpi-config.d/samba.sh
index 9a9153ba..6a3910ce 100644
--- a/etc/nextcloudpi-config.d/samba.sh
+++ b/etc/nextcloudpi-config.d/samba.sh
@@ -103,7 +103,7 @@ EOF
EOF
## create user with no login if it doesn't exist
- id "$user" &>/dev/null || adduser --disabled-password --gecos "" "$user"
+ id "$user" &>/dev/null || adduser --disabled-password --force-badname --gecos "" "$user" || return 1
echo -e "$PWD_\n$PWD_" | smbpasswd -s -a $user
usermod -aG www-data $user