feat: add azure-distrobox service
This commit is contained in:
parent
cd4b46af78
commit
ad82b8b879
7 changed files with 24 additions and 8 deletions
|
@ -58,7 +58,6 @@ COPY --from=ghcr.io/ublue-os/config:latest /files/ublue-os-update-services /
|
||||||
COPY files /
|
COPY files /
|
||||||
COPY build.sh /tmp/build.sh
|
COPY build.sh /tmp/build.sh
|
||||||
COPY packages /tmp/packages
|
COPY packages /tmp/packages
|
||||||
COPY build /tmp/build
|
|
||||||
|
|
||||||
RUN mkdir -p /var/lib/alternatives && \
|
RUN mkdir -p /var/lib/alternatives && \
|
||||||
/tmp/build.sh && \
|
/tmp/build.sh && \
|
||||||
|
|
7
build.sh
7
build.sh
|
@ -27,12 +27,6 @@ rpm-ostree override remove opensc
|
||||||
# Installed via flatpak
|
# Installed via flatpak
|
||||||
rpm-ostree override remove firefox firefox-langpacks
|
rpm-ostree override remove firefox firefox-langpacks
|
||||||
|
|
||||||
### Setup flatpaks
|
|
||||||
|
|
||||||
mkdir -p /etc/azure/flatpaks
|
|
||||||
cp /tmp/build/flatpak-setup /usr/bin/flatpak-setup
|
|
||||||
cp /tmp/build/flatpak-setup.service /usr/lib/systemd/user/flatpak-setup.service
|
|
||||||
|
|
||||||
#### Services
|
#### Services
|
||||||
|
|
||||||
systemctl enable docker.socket
|
systemctl enable docker.socket
|
||||||
|
@ -40,6 +34,7 @@ systemctl enable incus.socket
|
||||||
systemctl enable podman.socket
|
systemctl enable podman.socket
|
||||||
systemctl enable tailscaled.service
|
systemctl enable tailscaled.service
|
||||||
systemctl enable -f --global flatpak-setup.service
|
systemctl enable -f --global flatpak-setup.service
|
||||||
|
systemctl enable -f --global azure-distrobox.service
|
||||||
|
|
||||||
systemctl enable azure-system-setup.service
|
systemctl enable azure-system-setup.service
|
||||||
systemctl enable azure-groups.service
|
systemctl enable azure-groups.service
|
||||||
|
|
14
files/usr/lib/systemd/user/azure-distrobox.service
Normal file
14
files/usr/lib/systemd/user/azure-distrobox.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Update distrobox for current user
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/libexec/azure-distrobox
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=30
|
||||||
|
StartLimitInterval=0
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
8
files/usr/libexec/azure-distrobox
Normal file
8
files/usr/libexec/azure-distrobox
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ ! -f ~/.config/distrobox.ini ]; then
|
||||||
|
echo "No distrobox config at ~/.config/distrobox.ini, skipping"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
distrobox assemble create --file ~/.config/distrobox.ini
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
mkdir -p /etc/azure
|
mkdir -p /etc/azure/flatpaks
|
||||||
|
|
Loading…
Reference in a new issue