fix: extend search for smbd

This commit is contained in:
Phil Clifford 2024-08-04 19:34:38 +01:00 committed by Martin Wimpress
parent 18cdda254b
commit 1f0dc50194
1 changed files with 3 additions and 1 deletions

View File

@ -1090,7 +1090,9 @@ function configure_file_sharing() {
fi
# SMB
if [ -x "$(command -v smbd)" ]; then
# We need to search in NixOS compatible paths as well as the standard location
# since /usr/sbin/smbd may not be in the PATH.
if [ -x "$(command -v smbd)" ] || [ -x "/usr/sbin/smbd" ]; then
NET+=",smb=${PUBLIC}"
echo " - smbd: On guest: smb://10.0.2.4/qemu"
fi