projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15a7424
)
Make install fail if db-upgrade.php fails
author
Roland Mas
<lolando@debian.org>
Tue, 12 Jun 2012 20:08:05 +0000
(20:08 +0000)
committer
Roland Mas
<lolando@debian.org>
Tue, 12 Jun 2012 20:08:05 +0000
(20:08 +0000)
src/install/install3
patch
|
blob
|
history
diff --git
a/src/install/install3
b/src/install/install3
index 1a4528bb9a1d4212ae11eb0c978bbd76487ddc0c..5b772fd2ae2fb931ca1912a75d178c53fb92ec37 100755
(executable)
--- a/
src/install/install3
+++ b/
src/install/install3
@@
-282,7
+282,10
@@
EOF
su $susufix $gforge_user -c "psql $gforge_db < $fusionforge_src_dir/db/gforge.sql" >> /tmp/gforge-import.log
msg green " * Running php db/upgrade-db.php"
- php $fusionforge_src_dir/db/upgrade-db.php >> /tmp/gforge-upgrade.log
+ if ! php $fusionforge_src_dir/db/upgrade-db.php >> /tmp/gforge-upgrade.log ; then
+ msg red "upgrade-db.php failed."
+ return 1
+ fi
if [ -z "$FFORGE_ADMIN_USER" ]