update fix
This commit is contained in:
parent
0d1e251b7d
commit
13a49d14ae
16
Update.bat
16
Update.bat
@ -1,11 +1,9 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
rem git pull
|
rem git pull
|
||||||
echo pull latest code
|
echo pull latest code
|
||||||
git.exe pull
|
git.exe pull
|
||||||
echo Code downloaded
|
echo Code downloaded
|
||||||
|
|
||||||
|
@ECHO OFF
|
||||||
rem Import KNews
|
rem Import KNews
|
||||||
findstr "http://knews.cf" config.php >nul 2>&1
|
findstr "http://knews.cf" config.php >nul 2>&1
|
||||||
if errorlevel 1 goto ONE
|
if errorlevel 1 goto ONE
|
||||||
@ -28,8 +26,7 @@ findstr "https://k-loud.tk" config.php >nul 2>&1
|
|||||||
if errorlevel 0 goto ZERO
|
if errorlevel 0 goto ZERO
|
||||||
goto END
|
goto END
|
||||||
:ZERO
|
:ZERO
|
||||||
cscript replace.vbs "config.php" "https://k-loud.tk" "https://k-loud.cf"
|
echo Kloud.tk Already Updated
|
||||||
echo Kloud Updated
|
|
||||||
goto END
|
goto END
|
||||||
:ONE
|
:ONE
|
||||||
findstr "https://k-loud.cf" config.php >nul 2>&1
|
findstr "https://k-loud.cf" config.php >nul 2>&1
|
||||||
@ -37,15 +34,16 @@ findstr "https://k-loud.tk" config.php >nul 2>&1
|
|||||||
if errorlevel 0 goto ZERO
|
if errorlevel 0 goto ZERO
|
||||||
goto END
|
goto END
|
||||||
:ZERO
|
:ZERO
|
||||||
echo Kloud Already Updated
|
cscript replace.vbs "config.php" "https://k-loud.cf" "https://k-loud.tk"
|
||||||
|
echo Kloud Updated
|
||||||
goto END
|
goto END
|
||||||
:ONE
|
:ONE
|
||||||
echo ^<?php >>config.php
|
echo ^<?php >>config.php
|
||||||
echo $kloud = "https://k-loud.cf"; >> config.php
|
echo $kloud = "https://k-loud.tk"; >> config.php
|
||||||
echo ^?^> >> config.php
|
echo ^?^> >> config.php
|
||||||
echo Kloud Added
|
echo Kloud Added
|
||||||
goto END
|
goto END
|
||||||
:END
|
:END
|
||||||
|
|
||||||
rem Import Konvos
|
rem Import Konvos
|
||||||
findstr "http://konvos.cf" config.php >nul 2>&1
|
findstr "http://konvos.cf" config.php >nul 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user