diff --git a/src/Providers/TelegramGitNotifierServiceProvider.php b/src/Providers/TelegramGitNotifierServiceProvider.php index 0912f64..504d943 100644 --- a/src/Providers/TelegramGitNotifierServiceProvider.php +++ b/src/Providers/TelegramGitNotifierServiceProvider.php @@ -43,7 +43,7 @@ public function boot(): void ], 'config_jsons'); $jsonsPath = config('telegram-git-notifier.data_file.storage_folder'); - if (file_exists($jsonsPath)) { + if (is_string($jsonsPath) && file_exists($jsonsPath)) { exec("chown -R www-data:www-data $jsonsPath"); } }