summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2021-04-06 18:12:47 +0200
committerJonathan Bauer2021-04-06 18:12:47 +0200
commit95d8df578f0d0ff4c6606c7836c5062b7bf19178 (patch)
tree0d33b573acc6fdd49057e88626d8c05674793448
parent[demo-user] new module to create demo user (diff)
downloadmltk-95d8df578f0d0ff4c6606c7836c5062b7bf19178.tar.gz
mltk-95d8df578f0d0ff4c6606c7836c5062b7bf19178.tar.xz
mltk-95d8df578f0d0ff4c6606c7836c5062b7bf19178.zip
[distro-logo] make sure dest dir exists
-rw-r--r--core/modules/distro-logo/module.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/distro-logo/module.build b/core/modules/distro-logo/module.build
index 4e30667f..8c2813c8 100644
--- a/core/modules/distro-logo/module.build
+++ b/core/modules/distro-logo/module.build
@@ -13,6 +13,7 @@ post_copy() {
local DIST=$(lsb_release -si)
if [ -n "$DIST" ]; then
[ -z "$CFG_DISTLOGO_URL" ] && CFG_DISTLOGO_URL='http://mltk-services.ruf.uni-freiburg.de/distro_logo.php?distro='
+ mkdir -p "$TARGET_BUILD_DIR/etc"
wget -t 3 -T 3 -O "$TARGET_BUILD_DIR/etc/distro.png" "${CFG_DISTLOGO_URL}${DIST}"
if [ ! -s "$TARGET_BUILD_DIR/etc/distro.png" ]; then
rm -f "$TARGET_BUILD_DIR/etc/distro.png"