Skip to content

Commit

Permalink
new version upgrade for composer - close #133
Browse files Browse the repository at this point in the history
  • Loading branch information
do3meli committed Oct 14, 2015
1 parent 08da70e commit c801cd6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions bin/functions-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,21 @@ function piLogger_doUpgrade_20150920-002_to_20151020-001(){
return $?;
fi
}

#========================================
# from 20151020-001 to 20151014-001
#========================================
function piLogger_doUpgrade_20151020-001_to_20151014-001(){

echo " - moving composer files from previous installations if necessary"
[ -d $baseDir/include/vendor ] && mv $baseDir/include/vendor $baseDir/vendor
[ -f $baseDir/include/composer.lock ] && mv $baseDir/include/composer.lock $baseDir/composer.lock

echo " - check if composer files are at the correct place now"
if [ -d $baseDir/vendor ] && [ -f $baseDir/composer.lock ]; then
return 0;
else
return -1;
fi

}
3 changes: 2 additions & 1 deletion bin/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ versions="20150422-001
20150918-001
20150920-001
20150920-002
20151020-001"
20151020-001
20151014-001"

fromVersion=""
for toVersion in $versions
Expand Down
2 changes: 1 addition & 1 deletion currentVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20151002-001
20151014-001

0 comments on commit c801cd6

Please sign in to comment.