You are here

uninstall-selenium-server.sh in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.6

#!/bin/bash

if [ -d "/usr/lib/selenium" ]; then
  sudo /etc/init.d/selenium stop
  sudo rm -rf /usr/lib/selenium

  echo "\nDeleted selenium.\n"

  sudo rm -rf /var/log/selenium

  echo "Deleted logs.\n"

  sudo update-rc.d -f selenium remove
  echo "Removed selenium server.\n"
else
  echo "You can not uninstall Selenium is NOT installed."
fi

File

tests/tools/install-selenium-server/uninstall-selenium-server.sh
View source
  1. #!/bin/bash
  2. if [ -d "/usr/lib/selenium" ]; then
  3. sudo /etc/init.d/selenium stop
  4. sudo rm -rf /usr/lib/selenium
  5. echo "\nDeleted selenium.\n"
  6. sudo rm -rf /var/log/selenium
  7. echo "Deleted logs.\n"
  8. sudo update-rc.d -f selenium remove
  9. echo "Removed selenium server.\n"
  10. else
  11. echo "You can not uninstall Selenium is NOT installed."
  12. fi