From 43061b4fa0313252efb9392e9cfe982bb6242036 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 12 Jun 2023 13:42:30 -0400 Subject: [PATCH] List client options first in device type tweak menu Former-commit-id: 8aebe573a8ae73026f8a7b1dca386d92fd5fd14f Former-commit-id: 44bcf5f242b0dee634c4fea7cdae07e1a9a83d70 --- lib/stweak.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index 79c4bf3..410de34 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -81,16 +81,16 @@ def curses_terminate(_term_message): def install_type(): _offline_mode = 'false' # PORT START TWEAK-DEVTYPE - _install_type = curses_radio(('server', 'client (ssh-synchronized)', 'client (offline)'), + _install_type = curses_radio(('client (ssh-synchronized)', 'client (offline)', 'server'), 'device + sync type configuration') - if _install_type == 0: + if _install_type == 2: _dev_type = 'server' Path(f"{home}/.config/sshyp/deleted").mkdir(mode=0o700, exist_ok=True) Path(f"{home}/.config/sshyp/whitelist").mkdir(mode=0o700, exist_ok=True) curses_terminate('\nmake sure the ssh service is running and properly configured\n') else: _dev_type = 'client' - if _install_type == 2: + if _install_type == 1: _offline_mode = 'true' if not sshyp_data.has_section('CLIENT-GENERAL'): sshyp_data.add_section('CLIENT-GENERAL')