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
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nextcloudpi-config.d/SSH.sh')
-rw-r--r--etc/nextcloudpi-config.d/SSH.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/SSH.sh b/etc/nextcloudpi-config.d/SSH.sh
index a20cafc8..1ffdc1da 100644
--- a/etc/nextcloudpi-config.d/SSH.sh
+++ b/etc/nextcloudpi-config.d/SSH.sh
@@ -36,7 +36,7 @@ configure()
}
# Change credentials
- id "$USER_" &>/dev/null || useradd "$USER_"
+ id "$USER_" &>/dev/null || { echo "$USER_ doesn't exist"; return 1; }
echo -e "$PASS_\n$CONFIRM_" | passwd "$USER_" || return 1
# Check for insecure default pi password ( taken from old jessie method )
@@ -64,6 +64,7 @@ configure()
systemctl stop ssh
systemctl disable ssh
echo "The user ncp is using the default password. Refusing to activate SSH"
+ echo "You can change this password from nc-passwd"
echo "SSH disabled"
return 1
}