remove_rsync_test_setup.sh #2

  • //
  • guest/
  • tom_tyler/
  • sw/
  • main/
  • install_sdp/
  • dev/
  • bin/
  • remove_rsync_test_setup.sh
  • View
  • Commits
  • Open Download .zip Download (454 B)
#!/bin/bash
set -u

if command -v apt-get > /dev/null; then
   export DEBIAN_FRONTEND=noninteractive
   export NEEDRESTART_MODE=l
   export NEEDRESTART_SUSPEND=1

	apt-get remove -y rsync
elif command -v dnf > /dev/null; then
	dnf remove -y rsync
elif command -v zypper > /dev/null; then
	zypper remove -y rsync
fi

if command -v rsync > /dev/null; then
	echo "Error: rsync is still installed."
	exit 1
else
	echo "Verified: rsync has been removed."
fi

# Change User Description Committed
#2 31952 C. Thomas Tyler Added logic to avoid a test suite hang on Debian.
#1 31949 C. Thomas Tyler Test refinement to remove extranneous errors.