Check if busybox mkpasswd applet exists

This commit is contained in:
Bohan Yang
2020-09-23 14:57:26 +08:00
committed by GitHub
parent c95c207bcd
commit 4c167f7c91
+1 -1
View File
@@ -268,7 +268,7 @@ if [ "$DEBI_SKIP_USER" != true ]; then
else
DEBI_PASSWORD="$(mkpasswd -m sha512crypt "$DEBI_PASSWORD")"
fi
elif command_exists busybox; then
elif command_exists busybox && busybox mkpasswd --help >/dev/null 2>&1; then
if [ -z "$DEBI_PASSWORD" ]; then
DEBI_PASSWORD="$(busybox mkpasswd -m sha512)"
else