redis_setup.sh 614 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. set -e
  3. echo "***********************************"
  4. echo "Creating Second Redis Installation."
  5. echo "***********************************"
  6. echo ""
  7. echo ""
  8. echo "Copying Configuration..."
  9. CONFIGPATH=${TRAVIS_BUILD_DIR}/tests/travis/files/redis
  10. sudo cp ${CONFIGPATH}/redis-server2 /etc/init.d/redis-server2
  11. sudo cp ${CONFIGPATH}/redis-server2.conf /etc/redis/redis-server2.conf
  12. echo "Creating Data Directory..."
  13. sudo mkdir /var/lib/redis2
  14. sudo chown redis:redis /var/lib/redis2
  15. echo "Starting Second Service..."
  16. sudo service redis-server2 start
  17. sleep 3
  18. echo "Finished setup of second redis server."