Last active
February 23, 2016 16:53
-
-
Save fabtho/2a1370a6ad12750450bc to your computer and use it in GitHub Desktop.
typo3_minorupdate script
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
#!/bin/bash | |
read -p "TYPO3 Version to upgrade, 6.2.xx or 7.6.x: " version | |
echo $version | |
path=/var/www/ | |
major=${version::1} | |
minor=${version:2:1} | |
echo major version is: $major | |
echo minor version is: $minor | |
read -p "Ok? Abort with Ctrl-C if not!" ok | |
if (( $major == 7 )); then | |
git=TYPO3_7_LTS.CMS.git | |
else | |
git=TYPO3.CMS.git | |
fi; | |
cd $path$git | |
echo working path: | |
pwd | |
git fetch --tags | |
git tag --list | |
git checkout tags/$version | |
if (( $major == 7 )); then | |
/usr/local/bin/composer self-update | |
composer install | |
fi; | |
echo show ChangeLog: | |
head ChangeLog | |
cd $path | |
echo linking: | |
ln -vsfT $git typo3_src-$version | |
ln -vsfT typo3_src-$version typo3_src-$major.$minor.latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment