Log reports error if /etc/doas.d is missing when creating default user
Log displays error:
May 8 10:03:07 localhost local7.info tiny-cloud[1824]: early - create_default_user - START
May 8 10:03:07 localhost user.info : password for 'alpine' changed
May 8 10:03:07 localhost local7.err tiny-cloud[1824]: early - create_default_user - FAIL
May 8 10:03:07 localhost local7.info tiny-cloud[1824]: early - enable_sshd - START
Problem is that this makes the function return failure if etc/doas.d
is missing:
...
[ -d "$ROOT/etc/doas.d" ] &&
echo 'permit nopass :wheel' > "$TARGET/etc/doas.d/wheel.conf"
}