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
......@@ -15,7 +15,7 @@
[instance]
filename = instance.cfg.in
md5sum = ec1d3d947222354d73a94eb974f46d66
md5sum = 7cdff4ef4e8a7d1ac5f529865a7d8c6a
[yarn.lock]
filename = yarn.lock
......
......@@ -220,9 +220,9 @@ recipe = plone.recipe.command
location = $${directory:frontend-static}/$${:folder-name}
folder-name = fonts
command =
mkdir $${:location}
ln -s ${source-code-pro-fonts:location} $${:location}/source-code-pro
ln -s ${jetbrains-mono-fonts:location} $${:location}/jetbrains-mono
mkdir -p $${:location}
ln -sf ${source-code-pro-fonts:location} $${:location}/source-code-pro
ln -sf ${jetbrains-mono-fonts:location} $${:location}/jetbrains-mono
stop-on-error = true
[frontend-instance-logo]
......@@ -230,10 +230,7 @@ recipe = plone.recipe.command
filename = logo.png
full-path = $${directory:frontend-static}/$${:filename}
command =
if [ ! -e $${:full-path} ]
then
ln -s ${logo.png:output} $${:full-path}
fi
cp -f ${logo.png:output} $${:full-path}
stop-on-error = true
[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