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("======================================")
|
||||||
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")
|
print("Installing additional services")
|
||||||
data = subprocess.run("\"{}\" setup".format(os.path.join(CITADEL_ROOT, "services", "manage.py")), shell=True)
|
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
|
# install all services from installed.json
|
||||||
def installServices():
|
def installServices():
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(nodeRoot, "services", "installed.json"), 'r') as stream:
|
with open(os.path.join(nodeRoot, "services", "installed.yaml"), 'r') as stream:
|
||||||
installed: List[str] = yaml.safe_load(stream)
|
installed = yaml.safe_load(stream)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
installed: List[str] = []
|
installed = {
|
||||||
for service in installed:
|
"electrum": "electrs"
|
||||||
installService(service)
|
}
|
||||||
|
|
||||||
|
for key, value in installed.items():
|
||||||
|
setService(key, value)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user