mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 00:23:52 +00:00
fixed installer issues
This commit is contained in:
parent
c05c823b73
commit
478ed75a80
@ -4,10 +4,9 @@
|
|||||||
wsl --list >nul 2>&1
|
wsl --list >nul 2>&1
|
||||||
if %errorlevel% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
echo WSL is not installed. Installing...
|
echo WSL is not installed. Installing...
|
||||||
wsl --install -e
|
|
||||||
wsl --set-default-version 2
|
|
||||||
echo Installing Ubuntu 20.04 LTS...
|
echo Installing Ubuntu 20.04 LTS...
|
||||||
wsl --install -d Ubuntu-20.04 -e
|
wsl --install -d Ubuntu-20.04
|
||||||
|
wsl --set-default-version 2
|
||||||
) else (
|
) else (
|
||||||
echo WSL is already installed.
|
echo WSL is already installed.
|
||||||
)
|
)
|
||||||
@ -16,3 +15,4 @@ if %errorlevel% neq 0 (
|
|||||||
wsl.exe -d Ubuntu-20.04 ./install_script.sh
|
wsl.exe -d Ubuntu-20.04 ./install_script.sh
|
||||||
|
|
||||||
echo Installation and script execution complete!
|
echo Installation and script execution complete!
|
||||||
|
pause
|
18
scripts/wsl/lollms_petals_installer.bat.bak
Normal file
18
scripts/wsl/lollms_petals_installer.bat.bak
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
:: Check if WSL is installed
|
||||||
|
wsl --list >nul 2>&1
|
||||||
|
if %errorlevel% neq 0 (
|
||||||
|
echo WSL is not installed. Installing...
|
||||||
|
wsl --install -e
|
||||||
|
wsl --set-default-version 2
|
||||||
|
echo Installing Ubuntu 20.04 LTS...
|
||||||
|
wsl --install -d Ubuntu-20.04 -e
|
||||||
|
) else (
|
||||||
|
echo WSL is already installed.
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Execute the .sh script
|
||||||
|
wsl.exe -d Ubuntu-20.04 ./install_script.sh
|
||||||
|
|
||||||
|
echo Installation and script execution complete!
|
Loading…
x
Reference in New Issue
Block a user