Update update.blade.php

This commit is contained in:
Julian Prieber 2022-11-24 22:24:39 +01:00
parent d76473177e
commit f76a557055
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@
// Download the zip file // Download the zip file
$latestversion = trim(file_get_contents("https://raw.githubusercontent.com/JulianPrieber/littlelink-custom/main/version.json")); $latestversion = trim(file_get_contents("https://version.littlelink-custom.com/"));
if(env('JOIN_BETA') === true){ if(env('JOIN_BETA') === true){
$fileUrl = 'https://update.littlelink-custom.com/beta/'. $latestversion . '.zip'; $fileUrl = 'https://update.littlelink-custom.com/beta/'. $latestversion . '.zip';
@ -135,7 +135,7 @@ exit(); ?>
<?php // Get update preperation script from GitHub <?php // Get update preperation script from GitHub
try { try {
$file = file_get_contents('https://raw.githubusercontent.com/JulianPrieber/littlelink-custom/main/resources/views/components/pre-update.blade.php'); $file = file_get_contents('https://pre-update.littlelink-custom.com');
$newfile = base_path('resources/views/components/pre-update.blade.php'); $newfile = base_path('resources/views/components/pre-update.blade.php');
file_put_contents($newfile, $file); file_put_contents($newfile, $file);
} catch (exception $e) {} } catch (exception $e) {}