Skip to content

Commit 47ebac9

Browse files
committed
fix: permission for config files with client
1 parent 378275a commit 47ebac9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Providers/TelegramGitNotifierServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ public function boot(): void
3838
__DIR__.'/../../lang' => resource_path('lang/vendor/tg-notifier'),
3939
], 'lang');
4040

41-
// copy config jsons from core package and ensure permissions are correct
4241
$this->publishes([
4342
__DIR__.'/../../../telegram-git-notifier/config/jsons' => config('telegram-git-notifier.data_file.storage_folder'),
4443
], 'config_jsons');
44+
45+
$jsonsPath = config('telegram-git-notifier.data_file.storage_folder');
46+
if (file_exists($jsonsPath)) {
47+
exec("chown -R www-data:www-data $jsonsPath");
48+
}
4549
}
4650

4751
/**

0 commit comments

Comments
 (0)