fix(ssh-adduser): check if SSH_ADDUSER_AUTO is set

This commit is contained in:
AJ ONeal
2023-11-14 21:44:20 +00:00
parent 8ea2e01f4c
commit b63eb6d839

View File

@@ -61,7 +61,7 @@ main() {
sudo -i -u "$my_new_user" sh -c "curl -fsSL '$WEBI_HOST/ssh-pubkey' | sh > /dev/null" ||
sudo -i -u "$my_new_user" sh -c "wget -q -O - '$WEBI_HOST/ssh-pubkey' | sh > /dev/null"
if test -z "${SSH_ADDUSER_AUTO}"; then
if test -z "${SSH_ADDUSER_AUTO:-}"; then
echo ""
echo "!! BREAKING CHANGE !!"
echo ""