fix(yafti): create yafti directory before attempting copy (#299)

This commit is contained in:
xyny 2024-07-27 12:24:49 +00:00 committed by GitHub
parent 7543053424
commit af2db664ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,8 @@ MODULE_DIRECTORY="${MODULE_DIRECTORY:-"/tmp/modules"}"
FIRSTBOOT_DATA="/usr/share/ublue-os/firstboot"
mkdir -p "$FIRSTBOOT_DATA/launcher/"
# doesn't overwrite user's yafti.yml (ignores error)
cp -n "$MODULE_DIRECTORY/yafti/yafti.yml" "$FIRSTBOOT_DATA/yafti.yml" || true
cp -r "$MODULE_DIRECTORY/yafti/launcher/" "$FIRSTBOOT_DATA/launcher/"