Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions files/scripts/60-installer-support.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -uxeo pipefail

sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/ublue-os-staging-fedora-*.repo
dnf5 install -y taidan
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/ublue-os-staging-fedora-*.repo

systemctl enable taidan-initial-setup-reconfiguration.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
ConditionPathExists=
ConditionPathExists=/var/lib/taidan

[Service]
ExecStartPost=
ExecStartPost=systemctl disable taidan-initial-setup-reconfiguration
ExecStartPost=rm /var/lib/taidan

2 changes: 1 addition & 1 deletion recipes/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ modules:

- type: script
snippets:
- 'cd $CONFIG_DIRECTORY/scripts && for script in *.sh; do [ -f "$script" ] && bash "$script"; done'
- 'cd $CONFIG_DIRECTORY/scripts && for script in *.sh; do [ -f "$script" ] && bash "$script" || exit 1; done'

- type: default-flatpaks
notify: true # Send notification after install/uninstall is finished
Expand Down