projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e267b8
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Wed, 22 May 2013 07:24:39 +0000
(15:24 +0800)
committer
Edward
<edward@roojs.com>
Wed, 22 May 2013 07:24:39 +0000
(15:24 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
6e07d6f
..
298e2b6
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-61,6
+61,12
@@
class Pman_Core_UpdateDatabase extends Pman
die("Missing Source directory for json files or prefix for the passwrod! Try -f [JSON file path] -p [prefix] \n");
}
+ $uinfo = posix_getpwuid( posix_getuid () );
+ $file = $uinfo['dir'] ."/gitlive/Pman.Xtuple.Migrate/base_install_data/{$opt['source']}";
+ if (!file_exists($file)) {
+ die("can not found person json file : $file\n");
+ }
+
die("DONE!");