You are here

install-selenium-server-3.0.1.sh in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.8

#!/bin/bash

if [ ! -d "/usr/lib/selenium" ]; then
  sudo mkdir /usr/lib/selenium

  echo "Created selenium directory in /usr/lib.\n"

  echo "Getting selenium server standalone 3.0.1\n"
  sudo wget http://selenium-release.storage.googleapis.com/3.0-beta3/selenium-server-standalone-3.0.1.jar
  sudo mv selenium-server-standalone-3.0.1.jar /usr/lib/selenium/selenium-server-standalone-3.0.1.jar
  sudo ln -s /usr/lib/selenium/selenium-server-standalone-3.0.1.jar /usr/lib/selenium/selenium-server-standalone.jar
  echo "The selenium server standalone is ready in the server.\n"

  sudo mkdir -p /var/log/selenium
  sudo chmod a+w /var/log/selenium
  echo "Created the logs for selenium.\n"

  sudo cp selenium.sh /etc/init.d/selenium
  sudo chmod 755 /etc/init.d/selenium
  sudo update-rc.d selenium defaults 4445
  echo "Installed selenium server.\n"
  sudo /etc/init.d/selenium start
else
  echo "Selenium is installed.\nIf you want to update or install you will need:\n to run ./uninstall-selenium-server.sh first"
fi

File

tests/tools/install-selenium-server/install-selenium-server-3.0.1.sh
View source
  1. #!/bin/bash
  2. if [ ! -d "/usr/lib/selenium" ]; then
  3. sudo mkdir /usr/lib/selenium
  4. echo "Created selenium directory in /usr/lib.\n"
  5. echo "Getting selenium server standalone 3.0.1\n"
  6. sudo wget http://selenium-release.storage.googleapis.com/3.0-beta3/selenium-server-standalone-3.0.1.jar
  7. sudo mv selenium-server-standalone-3.0.1.jar /usr/lib/selenium/selenium-server-standalone-3.0.1.jar
  8. sudo ln -s /usr/lib/selenium/selenium-server-standalone-3.0.1.jar /usr/lib/selenium/selenium-server-standalone.jar
  9. echo "The selenium server standalone is ready in the server.\n"
  10. sudo mkdir -p /var/log/selenium
  11. sudo chmod a+w /var/log/selenium
  12. echo "Created the logs for selenium.\n"
  13. sudo cp selenium.sh /etc/init.d/selenium
  14. sudo chmod 755 /etc/init.d/selenium
  15. sudo update-rc.d selenium defaults 4445
  16. echo "Installed selenium server.\n"
  17. sudo /etc/init.d/selenium start
  18. else
  19. echo "Selenium is installed.\nIf you want to update or install you will need:\n to run ./uninstall-selenium-server.sh first"
  20. fi