Some fixes

This commit is contained in:
AaronDewes 2022-03-10 18:35:15 +00:00
parent efadad6887
commit 2d4f1adfe5
2 changed files with 8 additions and 9 deletions

4
scripts/configure vendored
View File

@ -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)

View File

@ -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)