fix update

This commit is contained in:
Karl Hudgell 2016-03-19 10:45:44 +00:00
parent 2af51311da
commit 19fcd18af9

View File

@ -1,3 +1,5 @@
chdir /d C:\inetpub\wwwroot\Klanding\
rem git pull
echo pull latest code
git.exe pull
@ -44,7 +46,7 @@ findstr "https://k-loud.tk" config.php >nul 2>&1
if errorlevel 0 goto ZERO
goto END
:ZERO
cscript C:\inetpub\wwwroot\Klanding\replace.vbs "config.php" "https://k-loud.cf" "https://k-loud.tk"
cscript replace.vbs "config.php" "https://k-loud.cf" "https://k-loud.tk"
echo Kloud Updated
goto END
:ONE
@ -93,7 +95,7 @@ findstr "http://webclip.ml" config.php >nul 2>&1
if errorlevel 0 goto ZERO
goto END
:ZERO
cscript C:\inetpub\wwwroot\Klanding\replace.vbs "config.php" "http://webclip.ml" "http://klips.cf"
cscript replace.vbs "config.php" "http://webclip.ml" "http://klips.cf"
echo WebClip Updated
goto END
:ONE
@ -107,7 +109,7 @@ findstr "http://kknowledge.tk" config.php >nul 2>&1
if errorlevel 0 goto ZERO
goto END
:ZERO
cscript C:\inetpub\wwwroot\Klanding\replace.vbs "config.php" "http://kknowledge.tk" "kknowledge.ml"
cscript replace.vbs "config.php" "http://kknowledge.tk" "kknowledge.ml"
echo kknowledge URL Updated
:ONE
echo kknowledge URL Already Updated
@ -122,7 +124,7 @@ findstr "smifftser.youdontcare.com" config.php >nul 2>&1
if errorlevel 0 goto ZERO
goto END
:ZERO
cscript C:\inetpub\wwwroot\Klanding\replace.vbs "config.php" "smifftser.youdontcare.com" "smiffster.ddns.net"
cscript replace.vbs "config.php" "smifftser.youdontcare.com" "smiffster.ddns.net"
echo Kris URL Updated
:ONE
echo Kris URL Already Updated
@ -392,7 +394,7 @@ findstr "localversion" config.php >nul 2>&1
goto END
:END
:ONE
cscript C:\inetpub\wwwroot\Klanding\replace.vbs "config.php" "2.2" "2.3"
cscript replace.vbs "config.php" "2.2" "2.3"
echo Version Updated to 2.3
goto END
:END