fix: submodule updates: force overwrite

pull/1370/head
Andreas Ziegler 2016-07-13 18:08:37 +02:00
parent c84c24502c
commit 8e28fed3ac
2 changed files with 2 additions and 5 deletions

View File

@ -18,9 +18,7 @@ git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`)
# 2. Update CakePHP to the latest supported version (if for some reason it doesn't get updated automatically with git submodule)
cd /var/www/MISP
rm -rf app/Lib/cakephp/
git submodule init
git submodule update
git submodule update --init --force
# 3. Update Mitre's STIX and its dependencies

View File

@ -14,8 +14,7 @@ git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`)
# 3. Update CakePHP to the latest supported version
cd /var/www/MISP
rm -rf app/Lib/cakephp/
git submodule init
git submodule update
git submodule update --init --force
# 4. delete everything from MISP's cache directory to get rid of the cached models
find /var/www/MISP/app/tmp/cache/ -type f -not -name 'empty' -delete