Skip to content

Commit ca4b295

Browse files
authored
Avoid setting JWT file permissions if the directory does not exist (#4077)
1 parent 72a3d84 commit ca4b295

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/recipe/shopware.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ to build the theme remotely instead of locally.
256256

257257

258258
### sw\:deploy {#sw-deploy}
259-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L145)
259+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L148)
260260

261261

262262

@@ -274,7 +274,7 @@ This task is group task which contains next tasks:
274274

275275

276276
### deploy {#deploy}
277-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L156)
277+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L159)
278278

279279
Deploys your project.
280280

@@ -291,23 +291,23 @@ This task is group task which contains next tasks:
291291

292292

293293
### sw-build-without-db\:get-remote-config {#sw-build-without-db-get-remote-config}
294-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L175)
294+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L178)
295295

296296

297297

298298

299299

300300

301301
### sw-build-without-db\:build {#sw-build-without-db-build}
302-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L188)
302+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L191)
303303

304304

305305

306306

307307

308308

309309
### sw-build-without-db {#sw-build-without-db}
310-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L192)
310+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L195)
311311

312312

313313

recipe/shopware.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ function getPlugins(): array
136136
});
137137

138138
task('sw:writable:jwt', static function () {
139+
if (!test('[ -d {{deploy_path}}/config/jwt/ ]')) {
140+
return;
141+
}
139142
run('cd {{release_path}} && chmod -R 660 config/jwt/*');
140143
});
141144

0 commit comments

Comments
 (0)