diff --git a/lollms/server/endpoints/lollms_motion_ctrl.py b/lollms/server/endpoints/lollms_motion_ctrl.py index 9451842..3dc6e76 100644 --- a/lollms/server/endpoints/lollms_motion_ctrl.py +++ b/lollms/server/endpoints/lollms_motion_ctrl.py @@ -30,6 +30,12 @@ lollmsElfServer:LOLLMSWebUI = LOLLMSWebUI.get_instance() @router.get("/install_motion_ctrl") def install_motion_ctrl(): try: + if lollmsElfServer.config.headless_server_mode: + return {"status":False,"error":"Service installation is blocked when in headless mode for obvious security reasons!"} + + if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1": + return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"} + lollmsElfServer.ShowBlockingMessage("Installing Motion Ctrl api server\nPlease stand by") from lollms.services.motion_ctrl.lollms_motion_ctrl import install_motion_ctrl install_motion_ctrl(lollmsElfServer) diff --git a/lollms/server/endpoints/lollms_ollama.py b/lollms/server/endpoints/lollms_ollama.py index 9296e94..8f608be 100644 --- a/lollms/server/endpoints/lollms_ollama.py +++ b/lollms/server/endpoints/lollms_ollama.py @@ -30,6 +30,12 @@ lollmsElfServer:LOLLMSWebUI = LOLLMSWebUI.get_instance() @router.get("/install_ollama") def install_ollama(): try: + if lollmsElfServer.config.headless_server_mode: + return {"status":False,"error":"Service installation is blocked when in headless mode for obvious security reasons!"} + + if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1": + return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"} + lollmsElfServer.ShowBlockingMessage("Installing ollama server\nPlease stand by") from lollms.services.ollama.lollms_ollama import install_ollama if install_ollama(lollmsElfServer): diff --git a/lollms/server/endpoints/lollms_sd.py b/lollms/server/endpoints/lollms_sd.py index 504d12a..c389016 100644 --- a/lollms/server/endpoints/lollms_sd.py +++ b/lollms/server/endpoints/lollms_sd.py @@ -30,6 +30,12 @@ lollmsElfServer:LOLLMSWebUI = LOLLMSWebUI.get_instance() @router.get("/install_sd") def install_sd(): try: + if lollmsElfServer.config.headless_server_mode: + return {"status":False,"error":"Service installation is blocked when in headless mode for obvious security reasons!"} + + if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1": + return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"} + lollmsElfServer.ShowBlockingMessage("Installing SD api server\nPlease stand by") from lollms.services.sd.lollms_sd import install_sd install_sd(lollmsElfServer) diff --git a/lollms/server/endpoints/lollms_vllm.py b/lollms/server/endpoints/lollms_vllm.py index 5a83f0c..dc89da9 100644 --- a/lollms/server/endpoints/lollms_vllm.py +++ b/lollms/server/endpoints/lollms_vllm.py @@ -29,6 +29,12 @@ lollmsElfServer:LOLLMSWebUI = LOLLMSWebUI.get_instance() @router.get("/install_vllm") def install_vllm(): try: + if lollmsElfServer.config.headless_server_mode: + return {"status":False,"error":"Service installation is blocked when in headless mode for obvious security reasons!"} + + if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1": + return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"} + lollmsElfServer.ShowBlockingMessage("Installing vllm server\nPlease stand by") from lollms.services.vllm.lollms_vllm import install_vllm if install_vllm(lollmsElfServer): diff --git a/lollms/server/endpoints/lollms_xtts.py b/lollms/server/endpoints/lollms_xtts.py index 50c48aa..9c2aeae 100644 --- a/lollms/server/endpoints/lollms_xtts.py +++ b/lollms/server/endpoints/lollms_xtts.py @@ -132,10 +132,10 @@ async def text2Audio(request: LollmsText2AudioRequest): def install_xtts(): try: if lollmsElfServer.config.headless_server_mode: - return {"status":False,"error":"Code execution is blocked when in headless mode for obvious security reasons!"} + return {"status":False,"error":"Service installation is blocked when in headless mode for obvious security reasons!"} if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1": - return {"status":False,"error":"Code execution is blocked when the server is exposed outside for very obvious reasons!"} + return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"} from lollms.services.xtts.lollms_xtts import install_xtts lollmsElfServer.ShowBlockingMessage("Installing xTTS api server\nPlease stand by") diff --git a/lollms/services/petals/install_petals.sh b/lollms/services/petals/install_petals.sh index 218e261..da891f9 100644 --- a/lollms/services/petals/install_petals.sh +++ b/lollms/services/petals/install_petals.sh @@ -6,7 +6,7 @@ if [ -e "$HOME/miniconda3/bin/conda" ]; then else echo "Conda is not installed. Please install it first." echo Installing conda - curl -LOk https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh + curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh -b $HOME/miniconda3/bin/conda init --all rm ./Miniconda3-latest-Linux-x86_64.sh diff --git a/lollms/services/vllm/install_vllm.sh b/lollms/services/vllm/install_vllm.sh index cf67ef8..0bf587d 100644 --- a/lollms/services/vllm/install_vllm.sh +++ b/lollms/services/vllm/install_vllm.sh @@ -6,7 +6,7 @@ if [ -e "$HOME/miniconda3/bin/conda" ]; then else echo "Conda is not installed. Please install it first." echo Installing conda - curl -LOk https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh + curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh -b rm ./Miniconda3-latest-Linux-x86_64.sh echo Done diff --git a/scripts/linux/linux_install.sh b/scripts/linux/linux_install.sh index 3bdfa82..dcb717c 100644 --- a/scripts/linux/linux_install.sh +++ b/scripts/linux/linux_install.sh @@ -77,7 +77,7 @@ REPO_URL="https://github.com/ParisNeo/lollms.git" if [ ! -f "$MINICONDA_DIR/Scripts/conda" ]; then # Download miniconda echo "Downloading Miniconda installer from $MINICONDA_DOWNLOAD_URL" - curl -LOk "$MINICONDA_DOWNLOAD_URL" + curl -LO "$MINICONDA_DOWNLOAD_URL" # Install miniconda echo diff --git a/scripts/macos/macos_install.sh b/scripts/macos/macos_install.sh index ed1bbd3..4ba9ba9 100644 --- a/scripts/macos/macos_install.sh +++ b/scripts/macos/macos_install.sh @@ -73,7 +73,7 @@ REPO_URL="https://github.com/ParisNeo/lollms.git" if [ ! -f "$MINICONDA_DIR/Scripts/conda" ]; then # Download Miniconda echo "Downloading Miniconda installer from $MINICONDA_DOWNLOAD_URL" - curl -LOk "$MINICONDA_DOWNLOAD_URL" + curl -LO "$MINICONDA_DOWNLOAD_URL" # Install Miniconda echo diff --git a/scripts/windows/win_install.bat b/scripts/windows/win_install.bat index 6638a1b..0163a93 100644 --- a/scripts/windows/win_install.bat +++ b/scripts/windows/win_install.bat @@ -73,7 +73,7 @@ set REPO_URL=https://github.com/ParisNeo/lollms.git if not exist "%MINICONDA_DIR%\Scripts\conda.exe" ( @rem download miniconda echo Downloading Miniconda installer from %MINICONDA_DOWNLOAD_URL% - call curl -LOk "%MINICONDA_DOWNLOAD_URL%" + call curl -LO "%MINICONDA_DOWNLOAD_URL%" @rem install miniconda echo. && echo Installing Miniconda To "%MINICONDA_DIR%" && echo Please Wait... && echo.