add path to directory

This commit is contained in:
Dmitry Shibanov
2020-02-04 13:58:37 +03:00
parent 810bd1a9c7
commit ce62a58d1f

View File

@@ -39,11 +39,18 @@ wget "https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/c
unzip chromedriver_linux64.zip unzip chromedriver_linux64.zip
rm chromedriver_linux64.zip rm chromedriver_linux64.zip
CHROMEDRIVER_BIN="/usr/bin/chromedriver" CHROME_DRIVER="/usr/local/share/chrome_driver"
mv "chromedriver" $CHROMEDRIVER_BIN
chown root:root $CHROMEDRIVER_BIN if [ ! -d $CHROME_DRIVER ]; then
chmod +x $CHROMEDRIVER_BIN mkdir -p $CHROME_DRIVER;
echo "CHROMEWEBDRIVER=$CHROMEDRIVER_BIN" | tee -a /etc/environment fi
CHROMEDRIVER_BIN="$CHROME_DRIVER/chromedriver"
mv "chromedriver" $CHROME_DRIVER
chown root:root $CHROME_DRIVER
chmod +x $CHROME_DRIVER
ln -s "$CHROMEDRIVER_BIN" /usr/bin/
echo "CHROMEWEBDRIVER=$CHROME_DRIVER" | tee -a /etc/environment
# Run tests to determine that the chromedriver installed as expected # Run tests to determine that the chromedriver installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work" echo "Testing to make sure that script performed as expected, and basic scenarios work"