|
@@ -67,6 +67,7 @@ class maj {
|
|
|
backup::create();
|
|
backup::create();
|
|
|
file::cleanFilesByOrder(DIR_BACKUP, BACKUP_LIMIT);
|
|
file::cleanFilesByOrder(DIR_BACKUP, BACKUP_LIMIT);
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
include_once(DIR_MAJ . "sql/maj.php");
|
|
include_once(DIR_MAJ . "sql/maj.php");
|
|
|
self::printSeparateur();
|
|
self::printSeparateur();
|
|
|
if(goSql() == TRUE){
|
|
if(goSql() == TRUE){
|
|
@@ -76,8 +77,9 @@ class maj {
|
|
|
} else {
|
|
} else {
|
|
|
self::print("ERROR : Maj SQL", self::$colorLineRed);
|
|
self::print("ERROR : Maj SQL", self::$colorLineRed);
|
|
|
}
|
|
}
|
|
|
|
|
+*/
|
|
|
|
|
|
|
|
- if($gitReturn == FALSE){
|
|
|
|
|
|
|
+ if(self::bashMaj() == FALSE){
|
|
|
self::printSeparateur();
|
|
self::printSeparateur();
|
|
|
self::print("ERROR : Repo GIT [" . MAJ_TARGET . " - " . git::getCommitHash(MAJ_TARGET) . "]", self::$colorLineRed);
|
|
self::print("ERROR : Repo GIT [" . MAJ_TARGET . " - " . git::getCommitHash(MAJ_TARGET) . "]", self::$colorLineRed);
|
|
|
self::printSeparateur();
|
|
self::printSeparateur();
|