diff --git a/Update.bat b/Update.bat index 170043c..7a1c135 100644 --- a/Update.bat +++ b/Update.bat @@ -3,6 +3,10 @@ echo pull latest code git.exe pull echo Code downloaded +rem Set permissions +CACLS *.* /e /p everyone:f +echo Permissions Updated + @ECHO OFF rem Import KNews findstr "http://knews.cf" config.php >nul 2>&1 @@ -90,6 +94,19 @@ findstr "http://webclip.ml" config.php >nul 2>&1 echo Klips Already Updated goto END :END + + rem Update Kris URL +findstr "smifftser.youdontcare.com" config.php >nul 2>&1 + if errorlevel 1 goto ONE + if errorlevel 0 goto ZERO + goto END + :ZERO + cscript replace.vbs "config.php" "smifftser.youdontcare.com" "smiffster.ddns.net" + echo Kris URL Updated + :ONE + echo Kris URL Already Updated + goto END + :END rem Add KodiVisible findstr "kodivisible" config.php >nul 2>&1 @@ -107,7 +124,4 @@ findstr "kodivisible" config.php >nul 2>&1 goto END :END -rem Set permissions -CACLS *.* /e /p everyone:f -echo Permissions Updated PAUSE \ No newline at end of file