mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Use whirlpool files stored on HDD
This commit is contained in:
parent
87096e6080
commit
21811f51df
|
@ -13,7 +13,7 @@ def get_whirlpool_status():
|
|||
# Find whirlpool status
|
||||
whirlpool_status = "Disabled"
|
||||
whirlpool_status_color = "gray"
|
||||
whirlpool_initialized = os.path.isfile("/opt/mynode/whirlpool/whirlpool-cli-config.properties")
|
||||
whirlpool_initialized = os.path.isfile("/mnt/hdd/mynode/whirlpool/whirlpool-cli-config.properties")
|
||||
if is_whirlpool_enabled():
|
||||
status_code = get_service_status_code("whirlpool")
|
||||
if status_code != 0:
|
||||
|
@ -63,5 +63,6 @@ def page_toggle_whirlpool():
|
|||
def page_reset_whirlpool():
|
||||
check_logged_in()
|
||||
os.system("rm -f /opt/mynode/whirlpool/whirlpool-cli-config.properties")
|
||||
os.system("rm -f /mnt/hdd/mynode/whirlpool/whirlpool-cli-config.properties")
|
||||
os.system("systemctl restart whirlpool --no-pager")
|
||||
return redirect("/whirlpool")
|
||||
|
|
Loading…
Reference in New Issue
Block a user