From 606b58557b141bd6e53c4f878ad618442b92a16c Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Fri, 11 Aug 2023 16:13:33 +0200 Subject: [PATCH] Symlink --- .github/workflows/test-cache.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-cache.yml b/.github/workflows/test-cache.yml index caadfe2..5a156a1 100644 --- a/.github/workflows/test-cache.yml +++ b/.github/workflows/test-cache.yml @@ -28,6 +28,10 @@ jobs: test ! -f /usr/games/fortune apt update apt install -y fortunes-min fortune-mod + # db is not installed at the proper path + if [ ! -d /usr/share/games/fortune ]; then + ln -s /usr/share/games/fortunes /usr/share/games/fortune + fi find /usr/share/games - name: Move and rename image with dependencies @@ -40,9 +44,4 @@ jobs: base_image: file://$RUNNER_TEMP/test_cache.img commands: | find /usr/share/games - # db is not installed at the proper path - if [ ! -d /usr/share/games/fortune ]; then - /usr/games/fortune /usr/share/games/fortunes - else - /usr/games/fortune - fi + /usr/games/fortune