svn: /web/doc-editor/trunk/scripts/cron/ check_build.php update_data.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Sat, 14 Nov 2009 21:02:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290757
Log:
cvs => vcs
Changed paths:
U web/doc-editor/trunk/scripts/cron/check_build.php
U web/doc-editor/trunk/scripts/cron/update_data.php
Modified: web/doc-editor/trunk/scripts/cron/check_build.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/check_build.php 2009-11-14 20:57:28 UTC (rev 290756)
+++ web/doc-editor/trunk/scripts/cron/check_build.php 2009-11-14 21:02:27 UTC (rev 290757)
@@ -15,7 +15,7 @@
// For all language, we check the build
foreach (RepositoryManager::getInstance()->availableLang as $lang) {
- $cmd = 'cd '.DOC_EDITOR_CVS_PATH.';/usr/bin/php configure.php --with-lang='.$lang.' --disable-segfault-error';
+ $cmd = 'cd '.DOC_EDITOR_VCS_PATH.';/usr/bin/php configure.php --with-lang='.$lang.' --disable-segfault-error';
$output = array();
exec($cmd, $output);
Modified: web/doc-editor/trunk/scripts/cron/update_data.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/update_data.php 2009-11-14 20:57:28 UTC (rev 290756)
+++ web/doc-editor/trunk/scripts/cron/update_data.php 2009-11-14 21:02:27 UTC (rev 290757)
@@ -4,19 +4,18 @@
* This script is intended to be placed in a cronjob.
* It must be run every day, at 00hOO for example.
* On Unix, you can use crontab -e and place this :
-* 00 00 * * * /usr/bin/php /path/to/your/cvs/dir/doc-editor/scripts/cron/update_data.php
+* 00 00 * * * /usr/bin/php /path/to/your/vcs/dir/doc-editor/scripts/cron/update_data.php
****/
-
require_once dirname(__FILE__) . '/../../php/conf.inc.php';
require_once dirname(__FILE__) . '/../../php/RepositoryManager.php';
$rm = RepositoryManager::getInstance();
-// Cvs update
+// VCS update
$rm->updateRepository();
-// After update the repo, we need to chmod all file to be able to save it again as www server user
+// After update the repo, we need to chmod all file to be able to save it again as www server user & group
$cmd = "cd ".DOC_EDITOR_VCS_PATH."; chmod -R 775 ./; chown -R ".DOC_EDITOR_WWW_USER.":".DOC_EDITOR_WWW_GROUP." ./";
exec($cmd);