Use whirlpool files stored on HDD

This commit is contained in:
Taylor Helsper 2020-06-09 21:53:27 -05:00
parent 87096e6080
commit 21811f51df

View File

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