Commit a9ef1454 authored by Waqar Ahmed's avatar Waqar Ahmed

Add custom keyword to host path labels

parent 25252b9f
...@@ -33,7 +33,7 @@ questions: ...@@ -33,7 +33,7 @@ questions:
editable: false editable: false
default: "/root/.chia" default: "/root/.chia"
- variable: hostPathEnabled - variable: hostPathEnabled
label: "Enable Host Path for Chia Configuration Volume" label: "Enable Custom Host Path for Chia Configuration Volume"
schema: schema:
type: boolean type: boolean
default: false default: false
...@@ -68,7 +68,7 @@ questions: ...@@ -68,7 +68,7 @@ questions:
editable: false editable: false
default: "/plots" default: "/plots"
- variable: hostPathEnabled - variable: hostPathEnabled
label: "Enable Host Path for Chia Plots Volume" label: "Enable Custom Host Path for Chia Plots Volume"
schema: schema:
type: boolean type: boolean
default: false default: false
......
...@@ -9,6 +9,6 @@ metadata: ...@@ -9,6 +9,6 @@ metadata:
data: data:
entrypoint.sh: |- entrypoint.sh: |-
#!/bin/sh #!/bin/sh
if [ -e /root/as.sh ]; then if [ ! -e /plots/keyfile ]; then
/chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile; /chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile;
fi fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment