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