Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Mar 8, 2017
2 parents 2b6deab + 86aaa3b commit 7e9eb4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/tale/controller/InstallController.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ public String index(Request request) {
public RestResponse doInstall(@QueryParam String site_title, @QueryParam String site_url,
@QueryParam String admin_user, @QueryParam String admin_email,
@QueryParam String admin_pwd) {

if(FileKit.exist(AttachController.CLASSPATH + "install.lock")
&& TaleConst.OPTIONS.getInt("allow_install", 0)!=1){
return RestResponse.fail("请勿重复安装");
}
try {
if (StringKit.isBlank(site_title) ||
StringKit.isBlank(site_url) ||
Expand Down

0 comments on commit 7e9eb4b

Please sign in to comment.