From effc4ab0f56119041ac6efecdbf0a782714ec783 Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Wed, 24 Aug 2022 21:18:38 -0700 Subject: Hide branch select until it's working --- backend/helpers.py | 4 ++-- frontend/src/components/settings/pages/general/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/helpers.py b/backend/helpers.py index 5e26f163..b3c8a51e 100644 --- a/backend/helpers.py +++ b/backend/helpers.py @@ -75,9 +75,9 @@ async def is_systemd_unit_active(unit_name: str) -> bool: async def stop_systemd_unit(unit_name: str) -> subprocess.CompletedProcess: cmd = ["systemctl", "stop", unit_name] - return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) async def start_systemd_unit(unit_name: str) -> subprocess.CompletedProcess: cmd = ["systemctl", "start", unit_name] - return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) diff --git a/frontend/src/components/settings/pages/general/index.tsx b/frontend/src/components/settings/pages/general/index.tsx index a37d8dab..c5f9b9dc 100644 --- a/frontend/src/components/settings/pages/general/index.tsx +++ b/frontend/src/components/settings/pages/general/index.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import { FaShapes } from 'react-icons/fa'; import { installFromURL } from '../../../../store'; -import BranchSelect from './BranchSelect'; +// import BranchSelect from './BranchSelect'; import RemoteDebuggingSettings from './RemoteDebugging'; import UpdaterSettings from './Updater'; @@ -22,7 +22,7 @@ export default function GeneralSettings() { /> */} - + {/* */}