Skip to content

Commit

Permalink
fix DMZ repo dir issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell committed Aug 16, 2023
1 parent 3ac3ec6 commit 1ca0695
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.alphawallet.token.web.Ethereum.TransactionHandler;
import com.alphawallet.token.web.Service.CryptoFunctions;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.HttpHeaders;
Expand All @@ -42,6 +43,7 @@
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
Expand Down Expand Up @@ -86,6 +88,7 @@ public class AppSiteController implements AttributeInterface
" \"package_name\": \"io.stormbird.wallet\",\n" +
" \"sha256_cert_fingerprints\": [\n" +
" \"8E:1E:C7:92:44:E2:AE:8F:5E:BE:A6:09:E5:CC:05:8F:01:9F:67:F4:A6:FF:E7:60:6E:DA:C8:64:8F:29:AB:C0\"\n" +
" \"54:5B:5D:DE:90:45:11:98:14:5C:90:32:C6:AE:F6:85:C3:7D:F5:72:75:FF:25:07:0E:13:03:11:61:66:6A:E3\"\n" +
" \"3C:6E:67:6B:7B:9D:AD:53:A3:03:85:CE:E4:53:D4:EC:D8:2A:DC:4B:14:58:4D:55:28:D2:E4:65:57:C3:4F:9D\"\n" +
" ]\n" +
" }\n" +
Expand Down Expand Up @@ -384,6 +387,11 @@ private void checkTokensOwnedByMagicLinkCreator(MagicLinkData data) throws Excep
}
}

@Value("${repository.dir}")
public void setRepoDir(String value) {
repoDir = Paths.get(value);
}

public static void main(String[] args) throws IOException { // TODO: should run System.exit() if IOException
addresses = new HashMap<Long, Map<String, File>>();
SpringApplication.run(AppSiteController.class, args);
Expand Down
1 change: 1 addition & 0 deletions dmz/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repository.dir=../../TokenScript-Repo

0 comments on commit 1ca0695

Please sign in to comment.