diff --git a/web_interface/blueprints/api_v3.py b/web_interface/blueprints/api_v3.py index c0f65dcd..9bb73df8 100644 --- a/web_interface/blueprints/api_v3.py +++ b/web_interface/blueprints/api_v3.py @@ -1339,6 +1339,9 @@ def execute_system_action(): elif action == 'reboot_system': result = subprocess.run(['sudo', 'reboot'], capture_output=True, text=True) + elif action == 'shutdown_system': + result = subprocess.run(['sudo', 'poweroff'], + capture_output=True, text=True) elif action == 'git_pull': # Use PROJECT_ROOT instead of hardcoded path project_dir = str(PROJECT_ROOT) diff --git a/web_interface/templates/v3/partials/overview.html b/web_interface/templates/v3/partials/overview.html index 7e8c30b8..36af1300 100644 --- a/web_interface/templates/v3/partials/overview.html +++ b/web_interface/templates/v3/partials/overview.html @@ -123,6 +123,16 @@ Reboot System + +