Skip to content

Instantly share code, notes, and snippets.

@andi34
Last active August 1, 2020 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andi34/3b2c9c92ae4070e8d651aafe3990dc6f to your computer and use it in GitHub Desktop.
Save andi34/3b2c9c92ae4070e8d651aafe3990dc6f to your computer and use it in GitHub Desktop.
sudo apt install -y git php-gd gphoto2 libimage-exiftool-perl
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y yarn
sudo chown -R www-data:www-data /var/www/
cd /var/www/
sudo -u www-data -s
rm -r html/*
git clone https://github.com/andi34/photobooth html
cd /var/www/html
git fetch origin
git checkout origin/stable2
git submodule update --init
yarn install
yarn build
exit
# quick update on git installation
sudo apt install -y git php-gd gphoto2 libimage-exiftool-perl
cd /var/www/html
sudo -u www-data -s
git fetch origin
git checkout origin/stable2
git submodule update --init
yarn install
yarn build
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment