Changeset 1116
- Timestamp:
- 09/08/08 05:26:23 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/arnoschn/cache/lib/utils/scripts/ci-test.php
r1115 r1116 358 358 $settings['${php5}'] = $this->_promptForPhp('php5'); 359 359 $settings['${test-url}'] = $this->_promptForTestingUrl($settings['${test-installation}']); 360 $settings['${memcached-socket}'] = ''; 360 361 return file_put_contents($file,str_replace(array_keys($settings),array_values($settings),file_get_contents($templateFile)))>0; 361 362 } … … 469 470 $res1 = file_put_contents($file1,str_replace('${memcached_server}',$socket,file_get_contents($templateFile)))>0; 470 471 $res2 = file_put_contents($file1,str_replace('${memcached_server}',$socket,file_get_contents($templateFile)))>0; 471 $res3 = file_put_contents(AK_CI_CONFIG_FILE,str_replace(' ${memcached-socket}',$socket,file_get_contents(AK_CI_CONFIG_FILE)));472 $res3 = file_put_contents(AK_CI_CONFIG_FILE,str_replace('memcached-socket: ','memcached-socket: '.$socket,file_get_contents(AK_CI_CONFIG_FILE))); 472 473 return $res1 && $res2 && $res3; 473 474 }
