Skip to content

Instantly share code, notes, and snippets.

@fabtho
Last active February 23, 2016 16:53
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 fabtho/2a1370a6ad12750450bc to your computer and use it in GitHub Desktop.
Save fabtho/2a1370a6ad12750450bc to your computer and use it in GitHub Desktop.
typo3_minorupdate script
#!/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