mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-10 17:10:47 +01:00
Update pre-update.blade.php
This commit is contained in:
parent
5070ff2693
commit
e74d92d25c
@ -1,4 +1,10 @@
|
|||||||
<?php
|
<?php // Runs before updating
|
||||||
// Runs before updating
|
if(trim(file_get_contents(base_path("version.json"))) < '4.0.0'){
|
||||||
|
try {
|
||||||
if(trim(file_get_contents(base_path("version.json"))) < '4.0.0')file_put_contents(base_path('config/advanced-config.php'), file_get_contents(base_path('storage/templates/advanced-config.php')));
|
$file = base_path('storage/RSTAC');
|
||||||
|
if (!file_exists($file)) {
|
||||||
|
$handleFile = fopen($file, 'w');
|
||||||
|
fclose($handleFile);
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user