Mercurial Hosting > nabble
comparison src/nabble/model/SiteImpl.java @ 2:abe0694e9849
replace local_dir with home_dir
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 25 Mar 2019 13:59:13 -0600 |
parents | 7ecd1a4ef557 |
children | 1010f557927f |
comparison
equal
deleted
inserted
replaced
1:75262552dd35 | 2:abe0694e9849 |
---|---|
1060 } | 1060 } |
1061 siteGlobal.getDbRecord().delete(); | 1061 siteGlobal.getDbRecord().delete(); |
1062 } | 1062 } |
1063 | 1063 |
1064 private static final String SALT = "zDf3s"; | 1064 private static final String SALT = "zDf3s"; |
1065 private static final File schemaDir = new File((String)Init.get("local_dir")+"schemas/"); | 1065 private static final File schemaDir = new File((String)Init.get("home_dir")+"local/schemas/"); |
1066 | 1066 |
1067 private static File getBackupFile(long siteId) { | 1067 private static File getBackupFile(long siteId) { |
1068 int hash = Math.abs(( SALT + siteId ).hashCode()); | 1068 int hash = Math.abs(( SALT + siteId ).hashCode()); |
1069 String filename = "site_"+siteId+"_"+hash+".zip"; | 1069 String filename = "site_"+siteId+"_"+hash+".zip"; |
1070 return new File(schemaDir,filename); | 1070 return new File(schemaDir,filename); |