From 6422658d43fe9ddd4256196b0acea8ed7efc47ff Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Tue, 5 Apr 2016 00:25:19 -0700 Subject: [PATCH] setup.txt: missed a test -f that should be a hash --- setup/setup.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/setup.txt b/setup/setup.txt index 137aa33..e0340d3 100755 --- a/setup/setup.txt +++ b/setup/setup.txt @@ -525,7 +525,7 @@ if [[ $installADTPro ]]; then echo "A2CLOUD: xvfb is already installed." fi - if [[ -f /usr/local/sbin/afpd ]]; then # A2SERVER/netatalk installed + if hash afpd 2>/dev/null; then # A2SERVER/netatalk installed if [[ ! -d /media/A2SHARED/ADTDISKS || ! $(grep ADTDISKS /usr/local/etc/netatalk/AppleVolumes.default) ]]; then echo "A2CLOUD: Setting up /usr/local/adtpro/disks for Apple file sharing..." if [[ ! -d /media/A2SHARED/ADTDISKS ]]; then