Skip to content

Commit ad9a82a

Browse files
committed
Update 'post-install-cmd'
Ensure that the previous symlink is removed and a new one is created. Otherwise, it can create a lot of nested symlinks like public/public/public, until it reaches the URI length and brings the website down.
1 parent ec9fbb1 commit ad9a82a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"prefer-stable": true,
3636
"scripts": {
3737
"post-install-cmd": [
38-
"ln -nfs ../var/files/public web/files"
38+
"rm -rf web/files && ln -s ../var/files/public web/files"
3939
]
4040
},
4141
"config": {

0 commit comments

Comments
 (0)