diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index e31083b1..18291f4c 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -51,7 +51,7 @@ class AppServiceProvider extends ServiceProvider }); //only run if the installer has been executed - if (file_exists(public_path()."/install/install.lock")) { + if (file_exists(base_path()."/install.lock")) { $settings = Settings::all(); // Set all configs from database foreach ($settings as $setting) { diff --git a/config/app.php b/config/app.php index c490961f..21a5d0a3 100644 --- a/config/app.php +++ b/config/app.php @@ -4,7 +4,7 @@ use App\Models\Settings; return [ - 'version' => '0.6.2', + 'version' => '0.7', /* |-------------------------------------------------------------------------- | Application Name diff --git a/install.lock b/install.lock new file mode 100644 index 00000000..a93f059a --- /dev/null +++ b/install.lock @@ -0,0 +1 @@ +locked \ No newline at end of file diff --git a/public/install/index.php b/public/install/index.php index aed826da..55bd42b0 100644 --- a/public/install/index.php +++ b/public/install/index.php @@ -1,7 +1,7 @@ @@ -449,7 +449,7 @@ echo $cardheader; - @if(!file_exists(public_path()."/install/install.lock")) + @if(!file_exists(base_path()."/install.lock"))

{{ __('The installer is not locked!') }}

-

{{ __('please create a file called "install.lock" in your "dashboard/public/installer" directory!') }}

-

{{ __('otherwise no settings will be loaded!') }}

+

{{ __('please create a file called "install.lock" in your dashboard Root directory. Otherwise no settings will be loaded!') }}

+ +
@endif diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index d9158a98..a8d58c88 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -18,11 +18,11 @@ - @if(!file_exists(public_path()."/install/install.lock") && Auth::User()->role == "admin") + @if(!file_exists(base_path()."/install.lock") && Auth::User()->role == "admin")

{{ __('The installer is not locked!') }}

-

{{ __('please create a file called "install.lock" in your "dashboard/public/installer" directory!') }}

-

{{ __('otherwise no settings will be loaded!') }}

+

{{ __('please create a file called "install.lock" in your dashboard Root directory. Otherwise no settings will be loaded!') }}

+
@endif