diff options
| -rw-r--r-- | extras/ganesha/scripts/ganesha-ha.sh | 34 | 
1 files changed, 18 insertions, 16 deletions
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh index 2a9d696d87f..ff6c1e1968d 100644 --- a/extras/ganesha/scripts/ganesha-ha.sh +++ b/extras/ganesha/scripts/ganesha-ha.sh @@ -249,10 +249,11 @@ grep Export_Id | cut -d " " -f8`                  scp -q -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i \  ${SECRET_PEM} ${HA_CONFDIR}/exports/export.$VOL.conf \  ${current_host}:${HA_CONFDIR}/exports/ -                output=$(ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i \ -${SECRET_PEM} root@${current_host} "dbus-send --print-reply --system \ ---dest=org.ganesha.nfsd /org/ganesha/nfsd/ExportMgr \ -org.ganesha.nfsd.exportmgr.RemoveExport uint16:$removed_id 2>&1") +                output=$(ssh -oPasswordAuthentication=no \ +-oStrictHostKeyChecking=no -i ${SECRET_PEM} root@${current_host} \ +"dbus-send --print-reply --system --dest=org.ganesha.nfsd \ +/org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.RemoveExport \ +uint16:$removed_id 2>&1 | grep -v \"^method return\"")                   ret=$?                   logger <<< "${output}"                   if [ ${ret} -ne 0 ]; then @@ -260,11 +261,12 @@ org.ganesha.nfsd.exportmgr.RemoveExport uint16:$removed_id 2>&1")                          exit 1                   fi                   sleep 1 -                 output=$(ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i \ -${SECRET_PEM} root@${current_host} "dbus-send  --system \ ---dest=org.ganesha.nfsd  /org/ganesha/nfsd/ExportMgr \ -org.ganesha.nfsd.exportmgr.AddExport  string:$HA_CONFDIR/exports/export.$VOL.conf \ -string:\"EXPORT(Path=/$VOL)\" 2>&1") +                 output=$(ssh -oPasswordAuthentication=no \ +-oStrictHostKeyChecking=no -i ${SECRET_PEM} root@${current_host} \ +"dbus-send --system --dest=org.ganesha.nfsd \ +/org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.AddExport \ +string:$HA_CONFDIR/exports/export.$VOL.conf \ +string:\"EXPORT(Path=/$VOL)\" 2>&1 | grep -v \"^method return\"")                   ret=$?                   logger <<< "${output}"                 if [ ${ret} -ne 0 ]; then @@ -283,9 +285,9 @@ string:\"EXPORT(Path=/$VOL)\" 2>&1")      fi  #Run the same command on the localhost, -        output=$(dbus-send --print-reply --system \ ---dest=org.ganesha.nfsd /org/ganesha/nfsd/ExportMgr \ -org.ganesha.nfsd.exportmgr.RemoveExport uint16:$removed_id 2>&1) +        output=$(dbus-send --print-reply --system --dest=org.ganesha.nfsd \ +/org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.RemoveExport \ +uint16:$removed_id 2>&1 | grep -v "^method return")          ret=$?          logger <<< "${output}"          if [ ${ret} -ne 0 ]; then @@ -293,10 +295,10 @@ org.ganesha.nfsd.exportmgr.RemoveExport uint16:$removed_id 2>&1)                  exit 1          fi          sleep 1 -        output=$(dbus-send  --system \ ---dest=org.ganesha.nfsd  /org/ganesha/nfsd/ExportMgr \ -org.ganesha.nfsd.exportmgr.AddExport  string:$HA_CONFDIR/exports/export.$VOL.conf \ -string:"EXPORT(Path=/$VOL)" 2>&1) +        output=$(dbus-send --system --dest=org.ganesha.nfsd \ +/org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.AddExport \ +string:$HA_CONFDIR/exports/export.$VOL.conf \ +string:"EXPORT(Path=/$VOL)" 2>&1 | grep -v "^method return")          ret=$?          logger <<< "${output}"          if [ ${ret} -ne 0 ] ; then  | 
