From d587158a6097cf327a7242eb6d4c232b9088127c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 29 Apr 2020 16:24:29 -0400 Subject: [PATCH] FIX: remove broken symlinks from removed plugins * if plugins have been removed or renamed, we end up with a dangling symlink in this directory * this causes the build to fail later during a chown --- templates/web.template.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index a60e6ef..826759f 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -103,6 +103,8 @@ run: - bash -c "mkdir -p /shared/tmp/{backups,restores}" - bash -c "ln -s /shared/tmp/{backups,restores} $home/tmp" - chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp + # scrub broken symlinks from plugins that have been removed + - find public/plugins/ -maxdepth 1 -xtype l -delete - exec: cmd: -- 2.25.1