Last active
April 3, 2019 19:43
-
-
Save progreccor/683badca2c24bf097a36bb4d019fcf35 to your computer and use it in GitHub Desktop.
Download latest Joomla release in to the directory and untar it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment