mirror of
https://github.com/EvernodeXRPL/hp-devkit.git
synced 2026-04-29 15:37:58 +00:00
Added new contract templates (#31)
This commit is contained in:
6
docker/code-templates/nodejs/upgrader-contract/dist/hp.cfg.override
vendored
Normal file
6
docker/code-templates/nodejs/upgrader-contract/dist/hp.cfg.override
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"contract": {
|
||||
"bin_path": "/usr/bin/node",
|
||||
"bin_args": "index.js"
|
||||
}
|
||||
}
|
||||
15
docker/code-templates/nodejs/upgrader-contract/dist/post_exec.sh
vendored
Executable file
15
docker/code-templates/nodejs/upgrader-contract/dist/post_exec.sh
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install unzip, jq if not installed, because it's required for the upgrader.
|
||||
|
||||
if ! command -v unzip &>/dev/null; then
|
||||
echo "Installing unzip"
|
||||
apt-get update
|
||||
apt-get install -y unzip
|
||||
fi
|
||||
|
||||
if ! command -v jq &>/dev/null; then
|
||||
echo "Installing unzip"
|
||||
apt-get update
|
||||
apt-get install -y jq
|
||||
fi
|
||||
Reference in New Issue
Block a user