Skip to content

Commit

Permalink
feat: add post-install script for finalizing configurations (ublue-os#30
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joshua-stone authored Mar 4, 2023
1 parent ab3e1b8 commit 828d712
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"

ADD build.sh /tmp/build.sh
ADD post-install.sh /tmp/post-install.sh
ADD packages.json /tmp/packages.json

COPY --from=ghcr.io/ublue-os/config:latest /rpms /tmp/rpms

RUN /tmp/build.sh
RUN /tmp/post-install.sh
RUN rm -rf /tmp/*
RUN ostree container commit
RUN mkdir -p /var/tmp && chmod -R 1777 /var/tmp
9 changes: 9 additions & 0 deletions post-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -ouex pipefail

systemctl enable flatpak-system-update.timer

systemctl --global enable flatpak-user-update.timer

cp /usr/share/ublue-os/ublue-os-update-services/etc/rpm-ostreed.conf /etc/rpm-ostreed.conf

0 comments on commit 828d712

Please sign in to comment.