Commit 83f9a39d authored by Xavier Thompson's avatar Xavier Thompson

software/theia: Overwrite static logo and fonts

Before this commit buildout could fail when instantiating Theia after
updating to a new software release because it tried to create already
existing symbolic links. These symlinks were to let the backend Caddy
serve the logo and fonts.

This commit solves the issue by systematically overwriting existing
files when creating the symlinks, and also directly copies the logo.
parent f4f50844
Pipeline #14643 passed with stage
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[instance] [instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = ec1d3d947222354d73a94eb974f46d66 md5sum = 7cdff4ef4e8a7d1ac5f529865a7d8c6a
[yarn.lock] [yarn.lock]
filename = yarn.lock filename = yarn.lock
......
...@@ -220,9 +220,9 @@ recipe = plone.recipe.command ...@@ -220,9 +220,9 @@ recipe = plone.recipe.command
location = $${directory:frontend-static}/$${:folder-name} location = $${directory:frontend-static}/$${:folder-name}
folder-name = fonts folder-name = fonts
command = command =
mkdir $${:location} mkdir -p $${:location}
ln -s ${source-code-pro-fonts:location} $${:location}/source-code-pro ln -sf ${source-code-pro-fonts:location} $${:location}/source-code-pro
ln -s ${jetbrains-mono-fonts:location} $${:location}/jetbrains-mono ln -sf ${jetbrains-mono-fonts:location} $${:location}/jetbrains-mono
stop-on-error = true stop-on-error = true
[frontend-instance-logo] [frontend-instance-logo]
...@@ -230,10 +230,7 @@ recipe = plone.recipe.command ...@@ -230,10 +230,7 @@ recipe = plone.recipe.command
filename = logo.png filename = logo.png
full-path = $${directory:frontend-static}/$${:filename} full-path = $${directory:frontend-static}/$${:filename}
command = command =
if [ ! -e $${:full-path} ] cp -f ${logo.png:output} $${: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