|
|
@@ -1203,6 +1203,7 @@ ARTYKUL=\"ARTYKUL\"
|
|
|
CERT_CE=\"CERT_CE\"
|
|
|
CERTYFIKAT=\"CERTYFIKAT\"
|
|
|
DEKLARACJA=\"DEKLARACJA\"
|
|
|
+DOKUMENTACJA=\"DOKUMENTACJA\"
|
|
|
DOK_POWYK=\"DOK_POWYK\"
|
|
|
DRUK=\"DRUK\"
|
|
|
;//ETYKIETA=\"ETYKIETA\"
|
|
|
@@ -1844,30 +1845,34 @@ function INSTALL_SES_PROCESY_A() {
|
|
|
//polecenia do gita:
|
|
|
|
|
|
//$ git clone /Library/Server/Web/Data/Sites/SE-production-git/ NOWY_KATALOG
|
|
|
- $cmd='sudo rm -Rf '.$installer_dir_tar.'/'.$h->ID.'.'.$REMOTE_FOLDER_ROOT.'.git';
|
|
|
+ $cmd=' rm -Rf '.$installer_dir_tar.'/'.$h->ID.'.'.$REMOTE_FOLDER_ROOT.'.git';
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
DEBUG_S(-3,'Usuwam stare pliki git ',$cmd,__FILE__,__FUNCTION__,__LINE__);
|
|
|
- exec($cmd);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
{ //@2015-01-27 zrobienie gita z repozytorium
|
|
|
|
|
|
|
|
|
- $cmd='cd '.$installer_dir_tar.' && sudo git clone git@biuro.biall-net.pl:plabudda/se.git '.$h->ID.'.'.$REMOTE_FOLDER_ROOT.'.git' ;
|
|
|
- exec($cmd);
|
|
|
+ $cmd='cd '.$installer_dir_tar.' && git clone git@biuro.biall-net.pl:plabudda/se.git '.$h->ID.'.'.$REMOTE_FOLDER_ROOT.'.git' ;
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
+ DEBUG_S(-3,'Klonowanie aktualnego GIT ',array($cmd,$out,$exit),__FILE__,__FUNCTION__,__LINE__);
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ /*
|
|
|
if (1==0) { //@2015-01-27 - proba zrobienia zwyklego clone
|
|
|
$cmd='git clone /Library/Server/Web/Data/Sites/SE-production-git/ '.$installer_dir_tar.'/'.$h->ID.'.'.$REMOTE_FOLDER_ROOT.'.git';
|
|
|
DEBUG_S(-3,'Running command',$cmd,__FILE__,__FUNCTION__,__LINE__);
|
|
|
- exec($cmd);
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
//$ cd NOWY_KATALOG
|
|
|
//$ git checkout v3.9.4
|
|
|
$cmd='cd '.$h->ID.'.'.$REMOTE_FOLDER_ROOT.'.git && git checkout '.$h->VERSION_GIT;
|
|
|
- DEBUG_S(-3,'Running command',$cmd,__FILE__,__FUNCTION__,__LINE__);
|
|
|
- exec($cmd);
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
+ DEBUG_S(-3,'Running command',array($cmd,$out,$exit),__FILE__,__FUNCTION__,__LINE__);
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+ */
|
|
|
|
|
|
//w taki sposób w katalogu NOWY_KATALOG pojawi się katalog SE z podaną wersją
|
|
|
//brakuje tylko katalogu SE/config/
|
|
|
@@ -1880,12 +1885,18 @@ function INSTALL_SES_PROCESY_A() {
|
|
|
|
|
|
|
|
|
{ //@2015-03-21 dogranie konfigow z repozytorium konfigow
|
|
|
+ $cmd='mkdir '.$INSTALL_ROOT.'/config' ;
|
|
|
+
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
+ DEBUG_S(-3,'We mkdir Install Root ',array($cmd,$out,$exit),__FILE__,__FUNCTION__,__LINE__);
|
|
|
$cmd='cp '.$OPTIONS->SE_config.'/config/.cnf--column_init* '.$INSTALL_ROOT.'/config/' ;
|
|
|
- DEBUG_S(-3,'We copy Install Root ',$cmd,__FILE__,__FUNCTION__,__LINE__);
|
|
|
- exec($cmd);
|
|
|
+
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
+ DEBUG_S(-3,'We copy Install Root ',array($cmd,$out,$exit),__FILE__,__FUNCTION__,__LINE__);
|
|
|
$cmd='cp '.$OPTIONS->SE_config.'/config/.cnf--external_ids.ini.php* '.$INSTALL_ROOT.'/config/' ;
|
|
|
- DEBUG_S(-3,'We copy Install Root ',$cmd,__FILE__,__FUNCTION__,__LINE__);
|
|
|
- exec($cmd);
|
|
|
+
|
|
|
+ exec($cmd,$out,$exit);
|
|
|
+ DEBUG_S(-3,'We copy Install Root ',array($cmd,$out,$exit),__FILE__,__FUNCTION__,__LINE__);
|
|
|
}
|
|
|
}
|
|
|
|