Skip to content

Instantly share code, notes, and snippets.

@progreccor
Last active April 3, 2019 19:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progreccor/683badca2c24bf097a36bb4d019fcf35 to your computer and use it in GitHub Desktop.
Save progreccor/683badca2c24bf097a36bb4d019fcf35 to your computer and use it in GitHub Desktop.
Download latest Joomla release in to the directory and untar it
GREEN='\033[0;32m'
RED='\033[0;31m'
WHITE='\033[0m'
site=test.ru
directory="/var/www/html"
adr=$( curl -s https://api.github.com/repos/joomla/joomla-cms/releases/latest | grep browser_download_url.*Stable-Full_Package.tar.gz | awk '{ print $2 }' | tr -d \" )
cd $directory
wget $adr
tar xvzf *Stable-Full_Package.tar.gz -C $directory/$site
rm $directory/*Stable-Full_Package.tar.gz
j Download Joomla into the directory
GREEN='\033[0;32m'
RED='\033[0;31m'
WHITE='\033[0m'
directory="/var/www/html"
adr=$( curl -s https://api.github.com/repos/joomla/joomla-cms/releases/latest | grep browser_download_url.*Stable-Full_Package.tar.gz | awk '{ print $2 }' | tr -d \" )
cd $directory
wget $adr
tar xvzf *Stable-Full_Package.tar.gz -C $directory/%f
rm $directory/*Stable-Full_Package.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment