diff --git a/scripts/a2server-6-samba.txt b/scripts/a2server-6-samba.txt index fe254ee..a919378 100755 --- a/scripts/a2server-6-samba.txt +++ b/scripts/a2server-6-samba.txt @@ -29,7 +29,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupWindowsSharing ]]; then fi sudo apt-get -y install samba - [[ -f /usr/bin/smbpasswd ]] || sudo apt-get -y install samba-common-bin + command -v smbpasswd >/dev/null || sudo apt-get -y install samba-common-bin sudo apt-get clean fi