fix: also install and enable yafti in yafti module

oops, forgot this one
there's currently no removing of the firstboot data, though,
but that doesn't affect people much ig
This commit is contained in:
ER
2023-08-13 17:24:20 +03:00
parent 8e80937db0
commit 93cd25fe01

View File

@@ -3,7 +3,15 @@
# Tell build process to exit if there are any errors. # Tell build process to exit if there are any errors.
set -oue pipefail set -oue pipefail
YAFTI_FILE="/usr/share/ublue-os/firstboot/yafti.yml" FIRSTBOOT_DATA="/usr/share/ublue-os/firstboot"
FIRSTBOOT_LINK="/usr/etc/profile.d/ublue-firstboot.sh"
echo "Installing and enabling yafti"
pip install --prefix=/usr yafti
# Create symlink to our profile script, which creates the per-user "autorun yafti" links.
mkdir -p "$(dirname "${FIRSTBOOT_LINK}")"
ln -s "${FIRSTBOOT_DATA}/launcher/login-profile.sh" "${FIRSTBOOT_LINK}"
YAFTI_FILE="$FIRSTBOOT_DATA/yafti.yml"
get_yaml_array FLATPAKS '.custom-flatpaks[]' "$1" get_yaml_array FLATPAKS '.custom-flatpaks[]' "$1"
if [[ ${#FLATPAKS[@]} -gt 0 ]]; then if [[ ${#FLATPAKS[@]} -gt 0 ]]; then