If keyfile already exists when installing, do not generate a new one

This commit is contained in:
Waqar Ahmed
2021-05-09 03:56:41 +05:00
parent 42ef7f974c
commit 25252b9f19
3 changed files with 4 additions and 3 deletions

View File

@@ -6,4 +6,3 @@ Introduction
------------
This chart bootstraps CHIA deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs.

View File

@@ -1,6 +1,6 @@
groups:
- name: "Storage"
description: "Configure Storage for IPFS"
description: "Configure Storage for Chia"
questions:
- variable: appVolumeMounts

View File

@@ -9,4 +9,6 @@ metadata:
data:
entrypoint.sh: |-
#!/bin/sh
/chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile;
if [ -e /root/as.sh ]; then
/chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile;
fi