mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
Quick bug fix for tailscale
This commit is contained in:
@@ -1,45 +1,23 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
:install_tailscale
|
||||
title STL [INSTALL-TAILSCALE]
|
||||
set log_dir = %log_dir%
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Do you already have a Tailscale account set up? (Y/N)
|
||||
set /p tailscale_account="Answer (Y/N): "
|
||||
|
||||
if /i "%tailscale_account%"=="Y" (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Checking if Tailscale is already installed and running...
|
||||
|
||||
rem Check if Tailscale is running by using the status command
|
||||
tailscale status >nul 2>&1
|
||||
if %errorlevel%==0 (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Tailscale is already installed and running. Proceeding to configuration...
|
||||
call %app_installer_core_utilities_dir%\config_tailscale.bat
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Tailscale...
|
||||
winget install Tailscale.Tailscale
|
||||
|
||||
if %errorlevel%==0 (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Tailscale installed successfully.%reset%
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Tailscale configuration...
|
||||
call %app_installer_core_utilities_dir%\config_tailscale.bat
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[ERROR]%reset% Tailscale installation failed.%reset%
|
||||
)
|
||||
)
|
||||
pause
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Tailscale configuration...
|
||||
call %app_installer_core_utilities_dir%\config_tailscale.bat
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Opening Tailscale sign-up page...
|
||||
start "" "https://login.tailscale.com/start"
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Press any key after signing up to continue installation...
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Press any key after signing up to continue configuration...
|
||||
pause
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Tailscale...
|
||||
winget install Tailscale.Tailscale
|
||||
|
||||
if %errorlevel%==0 (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Tailscale installed successfully.%reset%
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Tailscale configuration...
|
||||
call config_tailscale.bat
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[ERROR]%reset% Tailscale installation failed.%reset%
|
||||
)
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Tailscale configuration...
|
||||
call config_tailscale.bat
|
||||
)
|
||||
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user