Commit 79ae2be3 authored by Jérome Perrin's avatar Jérome Perrin

software/theia: fix frontend-instance-logo errors when updating

When updating existing instance, running slapos node instance failed with:

    ln: failed to create symbolic link '/srv/slapgrid/slappart9/srv/frontend-static/logo.png': File exists

This fixes by doing nothing if logo.png already exists
parent 5d46a499
Pipeline #12243 failed with stage
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[instance] [instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = 397fcb3279029af3055b23525d147445 md5sum = 2ceb9389281c00261abd864fc8ed566f
[yarn.lock] [yarn.lock]
filename = yarn.lock filename = yarn.lock
......
...@@ -98,8 +98,12 @@ stop-on-error = true ...@@ -98,8 +98,12 @@ stop-on-error = true
[frontend-instance-logo] [frontend-instance-logo]
recipe = plone.recipe.command recipe = plone.recipe.command
filename = logo.png filename = logo.png
full-path = $${directory:frontend-static}/$${:filename}
command = command =
ln -s ${logo.png:output} $${directory:frontend-static}/$${:filename} if [ ! -e $${:full-path} ]
then
ln -s ${logo.png:output} $${:full-path}
fi
stop-on-error = true stop-on-error = true
[frontend-instance-slapos.css] [frontend-instance-slapos.css]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment