Fix update script, Update Kloud
This commit is contained in:
parent
3f19b12108
commit
0d1e251b7d
104
Update.bat
104
Update.bat
@ -1,17 +1,99 @@
|
|||||||
|
@ECHO OFF
|
||||||
|
|
||||||
|
rem git pull
|
||||||
|
echo pull latest code
|
||||||
git.exe pull
|
git.exe pull
|
||||||
|
echo Code downloaded
|
||||||
|
|
||||||
|
|
||||||
|
rem Import KNews
|
||||||
|
findstr "http://knews.cf" config.php >nul 2>&1
|
||||||
|
if errorlevel 1 goto ONE
|
||||||
|
if errorlevel 0 goto ZERO
|
||||||
|
goto END
|
||||||
|
:ZERO
|
||||||
|
echo KNews Already Updated
|
||||||
|
goto END
|
||||||
|
:ONE
|
||||||
|
echo ^<?php >>config.php
|
||||||
|
echo $knews = "http://knews.cf"; >> config.php
|
||||||
|
echo ^?^> >> config.php
|
||||||
|
echo KNews Added
|
||||||
|
goto END
|
||||||
|
:END
|
||||||
|
|
||||||
|
rem Import KLoud
|
||||||
|
findstr "https://k-loud.tk" config.php >nul 2>&1
|
||||||
|
if errorlevel 1 goto ONE
|
||||||
|
if errorlevel 0 goto ZERO
|
||||||
|
goto END
|
||||||
|
:ZERO
|
||||||
|
cscript replace.vbs "config.php" "https://k-loud.tk" "https://k-loud.cf"
|
||||||
|
echo Kloud Updated
|
||||||
|
goto END
|
||||||
|
:ONE
|
||||||
|
findstr "https://k-loud.cf" config.php >nul 2>&1
|
||||||
|
if errorlevel 1 goto ONE
|
||||||
|
if errorlevel 0 goto ZERO
|
||||||
|
goto END
|
||||||
|
:ZERO
|
||||||
|
echo Kloud Already Updated
|
||||||
|
goto END
|
||||||
|
:ONE
|
||||||
|
echo ^<?php >>config.php
|
||||||
|
echo $kloud = "https://k-loud.cf"; >> config.php
|
||||||
|
echo ^?^> >> config.php
|
||||||
|
echo Kloud Added
|
||||||
|
goto END
|
||||||
|
:END
|
||||||
|
|
||||||
|
rem Import Konvos
|
||||||
|
findstr "http://konvos.cf" config.php >nul 2>&1
|
||||||
|
if errorlevel 1 goto ONE
|
||||||
|
if errorlevel 0 goto ZERO
|
||||||
|
goto END
|
||||||
|
:ZERO
|
||||||
|
echo Konvos Already Updated
|
||||||
|
goto END
|
||||||
|
:ONE
|
||||||
|
echo ^<?php >>config.php
|
||||||
|
echo $kloud = "http://konvos.cf"; >> config.php
|
||||||
|
echo ^?^> >> config.php
|
||||||
|
echo Konvos Added
|
||||||
|
goto END
|
||||||
|
:END
|
||||||
|
|
||||||
|
rem Import Konvos enable
|
||||||
|
findstr "konvosvisible" config.php >nul 2>&1
|
||||||
|
if errorlevel 1 goto ONE
|
||||||
|
if errorlevel 0 goto ZERO
|
||||||
|
goto END
|
||||||
|
:ZERO
|
||||||
|
echo Konvos Enabled Already Updated
|
||||||
|
goto END
|
||||||
|
:ONE
|
||||||
|
echo ^<?php >>config.php
|
||||||
|
echo $konvosvisible = "1"; >> config.php
|
||||||
|
echo ^?^> >> config.php
|
||||||
|
echo Konvos Enabled Added
|
||||||
|
goto END
|
||||||
|
:END
|
||||||
|
|
||||||
|
rem Update WebClip URL to Klips
|
||||||
findstr "http://webclip.ml" config.php >nul 2>&1
|
findstr "http://webclip.ml" config.php >nul 2>&1
|
||||||
if errorlevel 1 echo Already Updated
|
if errorlevel 1 goto ONE
|
||||||
if errorlevel 0 cscript replace.vbs "config.php" "http://webclip.ml" "http://klips.cf"
|
if errorlevel 0 goto ZERO
|
||||||
|
goto END
|
||||||
|
:ZERO
|
||||||
|
cscript replace.vbs "config.php" "http://webclip.ml" "http://klips.cf"
|
||||||
|
echo WebClip Updated
|
||||||
|
goto END
|
||||||
|
:ONE
|
||||||
|
echo Klips Already Updated
|
||||||
|
goto END
|
||||||
|
:END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
findstr "http://k-loud.cf" config.php >nul 2>&1
|
|
||||||
if errorlevel 1 echo Already Updated
|
|
||||||
if errorlevel 0 cscript replace.vbs "config.php" "http://k-loud.cf" "http://k-loud.tk"
|
|
||||||
|
|
||||||
findstr "knews.cf" config.php >nul 2>&1
|
|
||||||
if errorlevel 1 findstr "k-loud.cf" config.php >nul 2>&1
|
|
||||||
if errorlevel 1 findstr "konvos.cf" config.php >nul 2>&1
|
|
||||||
if errorlevel 1 ImportLines.bat
|
|
||||||
if errorlevel 0 echo Complete
|
|
||||||
|
|
||||||
ImportLines.bat
|
|
Loading…
x
Reference in New Issue
Block a user