mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-05-01 11:41:24 +00:00
Quick bug fix for tailscale
This commit is contained in:
@@ -1,45 +1,23 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal enabledelayedexpansion
|
||||||
:install_tailscale
|
:install_tailscale
|
||||||
title STL [INSTALL-TAILSCALE]
|
title STL [INSTALL-TAILSCALE]
|
||||||
set log_dir = %log_dir%
|
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)
|
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): "
|
set /p tailscale_account="Answer (Y/N): "
|
||||||
|
|
||||||
if /i "%tailscale_account%"=="Y" (
|
if /i "%tailscale_account%"=="Y" (
|
||||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Checking if Tailscale is already installed and running...
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Tailscale configuration...
|
||||||
|
call %app_installer_core_utilities_dir%\config_tailscale.bat
|
||||||
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
|
|
||||||
) else (
|
) else (
|
||||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Opening Tailscale sign-up page...
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Opening Tailscale sign-up page...
|
||||||
start "" "https://login.tailscale.com/start"
|
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
|
pause
|
||||||
|
|
||||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Tailscale...
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Tailscale configuration...
|
||||||
winget install Tailscale.Tailscale
|
call config_tailscale.bat
|
||||||
|
|
||||||
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%
|
|
||||||
)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pause
|
||||||
|
|||||||
Reference in New Issue
Block a user