Skip to content

Instantly share code, notes, and snippets.

@BigAlRender
Last active February 12, 2024 14:46
Show Gist options
  • Save BigAlRender/de4376e2461040ec4938478036876b74 to your computer and use it in GitHub Desktop.
Save BigAlRender/de4376e2461040ec4938478036876b74 to your computer and use it in GitHub Desktop.
Test Chrome for Cron Jobs
#!/usr/bin/env bash
# exit on error
set -o errexit
STORAGE_DIR=/opt/render/project/.render
echo "...Downloading Chrome"
mkdir -p $STORAGE_DIR/chrome
cd $STORAGE_DIR/chrome
wget -P ./ https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
echo "...Installing Chrome"
dpkg -x ./google-chrome-stable_current_amd64.deb $STORAGE_DIR/chrome
echo "...Deleting install package"
rm ./google-chrome-stable_current_amd64.deb
cd $HOME/project/src # Make sure we return to where we were
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment