forked from michael.heier/citadel-core
Some fixes
This commit is contained in:
parent
efadad6887
commit
2d4f1adfe5
4
scripts/configure
vendored
4
scripts/configure
vendored
|
@ -101,10 +101,6 @@ print("============== CITADEL ==============")
|
|||
print("======================================")
|
||||
print()
|
||||
|
||||
if not reconfiguring:
|
||||
print("Installing electrs...")
|
||||
data = subprocess.run("\"{}\" install electrs".format(os.path.join(CITADEL_ROOT, "services", "manage.py")), shell=True)
|
||||
|
||||
print("Installing additional services")
|
||||
data = subprocess.run("\"{}\" setup".format(os.path.join(CITADEL_ROOT, "services", "manage.py")), shell=True)
|
||||
|
||||
|
|
|
@ -91,12 +91,15 @@ def uninstallService(name):
|
|||
# install all services from installed.json
|
||||
def installServices():
|
||||
try:
|
||||
with open(os.path.join(nodeRoot, "services", "installed.json"), 'r') as stream:
|
||||
installed: List[str] = yaml.safe_load(stream)
|
||||
with open(os.path.join(nodeRoot, "services", "installed.yaml"), 'r') as stream:
|
||||
installed = yaml.safe_load(stream)
|
||||
except FileNotFoundError:
|
||||
installed: List[str] = []
|
||||
for service in installed:
|
||||
installService(service)
|
||||
installed = {
|
||||
"electrum": "electrs"
|
||||
}
|
||||
|
||||
for key, value in installed.items():
|
||||
setService(key, value)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user