mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Check if busybox mkpasswd applet exists
This commit is contained in:
+1
-1
@@ -268,7 +268,7 @@ if [ "$DEBI_SKIP_USER" != true ]; then
|
|||||||
else
|
else
|
||||||
DEBI_PASSWORD="$(mkpasswd -m sha512crypt "$DEBI_PASSWORD")"
|
DEBI_PASSWORD="$(mkpasswd -m sha512crypt "$DEBI_PASSWORD")"
|
||||||
fi
|
fi
|
||||||
elif command_exists busybox; then
|
elif command_exists busybox && busybox mkpasswd --help >/dev/null 2>&1; then
|
||||||
if [ -z "$DEBI_PASSWORD" ]; then
|
if [ -z "$DEBI_PASSWORD" ]; then
|
||||||
DEBI_PASSWORD="$(busybox mkpasswd -m sha512)"
|
DEBI_PASSWORD="$(busybox mkpasswd -m sha512)"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user