Przeglądaj źródła

aliasowanie konfigow do 127.0.0.1 aby chodzilo zawsze na localhoscie do testowania bez dzialajacej domeny

a.binder 10 lat temu
rodzic
commit
5db5618962
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      SE/superedit-INSTALL_SES_PROCESY_A.php

+ 7 - 0
SE/superedit-INSTALL_SES_PROCESY_A.php

@@ -1215,6 +1215,8 @@ database=\"'.$REMOTE_FOLDER_ROOT.'\"
 
 " > /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_db-'.$SERVER_ADDRESS.'.ini.php
 ';
+
+$cmd[]['rsh']=' test -f /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_db-127.0.0.1.ini.php ||  ln /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_db-'.$SERVER_ADDRESS.'.ini.php /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_db-127.0.0.1.ini.php'; //aliasowanie do localhosta konfigow do testow systemu
  //! .cnf--folders
  $cmd[]['rsh']=' mkdir -p /Library/Server/Web/Data/Sites/Default/PLIKI/'.$REMOTE_FOLDER_ROOT;
  $cmd[]['rsh']=' mkdir -p /Library/Server/Web/Data/Sites/Default/PLIKI/'.$REMOTE_FOLDER_ROOT.'/PISMA';
@@ -1444,6 +1446,7 @@ www_share_point=\"SKANY\"
 
 
 " > /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--folders-'.$SERVER_ADDRESS.'.ini.php';
+$cmd[]['rsh']=' test -f /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--folders-127.0.0.1.ini.php ||  ln /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--folders-'.$SERVER_ADDRESS.'.ini.php /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--folders-127.0.0.1.ini.php'; //aliasowanie do localhosta konfigow do testow systemu
 //! .config_domena_.php
 //LDAP 
 $cmd[]['rsh']='echo ";<?php
@@ -1458,6 +1461,7 @@ pass=\"'.$ADMIN_USERNAME_PASSWD.'\"
 base_dn=\"'.$SERVER_ADDRESS_LDAP_DC.'\"
 " > /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_ldap-'.$SERVER_ADDRESS.'.ini.php
 ';
+$cmd[]['rsh']=' test -f /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_ldap-127.0.0.1.ini.php ||  ln /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_ldap-'.$SERVER_ADDRESS.'.ini.php /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--default_ldap-127.0.0.1.ini.php'; //aliasowanie do localhosta konfigow do testow systemu
 
 $cmd[]['rsh']='echo "<?php
 
@@ -1485,6 +1489,7 @@ database=\"SES_USERS2\"
 
 " > /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db-'.$SERVER_ADDRESS.'.ini.php
 '; //todo zmienic to wczesniej
+$cmd[]['rsh']=' test -f /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db-127.0.0.1.ini.php ||  ln /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db-'.$SERVER_ADDRESS.'.ini.php /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db-127.0.0.1.ini.php'; //aliasowanie do localhosta konfigow do testow systemu
 
  $cmd[]['rsh']='which mysqladmin && mysqladmin  -f -uroot -p'.$ADMIN_USERNAME_PASSWD.' drop '.$REMOTE_FOLDER_ROOT.' || echo PASSED ';
 
@@ -1560,6 +1565,8 @@ database=\"'.$REMOTE_FOLDER_ROOT.'\"
 
 " > /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--zasob_2-'.$SERVER_ADDRESS.'.ini.php
 ';
+
+$cmd[]['rsh']=' test -f /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--zasob_2-127.0.0.1.ini.php ||  ln /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--zasob_2-'.$SERVER_ADDRESS.'.ini.php /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--zasob_2-127.0.0.1.ini.php'; //aliasowanie do localhosta konfigow do testow systemu
 //! dodanie pierwszego usera ADMIN_USERNAME_L1 oraz diradmin
 
 return $cmd;