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
- #!/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