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/ncp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ncp.sh')
-rw-r--r--ncp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncp.sh b/ncp.sh
index 69db9872..4e532c9e 100644
--- a/ncp.sh
+++ b/ncp.sh
@@ -123,7 +123,7 @@ EOF
a2ensite ncp-activation
## NCP USER FOR AUTHENTICATION
- useradd --home-dir /nonexistent "$WEBADMIN"
+ id -u "$WEBADMIN" &>/dev/null || useradd --home-dir /nonexistent "$WEBADMIN"
echo -e "$WEBPASSWD\n$WEBPASSWD" | passwd "$WEBADMIN"
chsh -s /usr/sbin/nologin "$WEBADMIN"