feat: add topgrade
This commit is contained in:
parent
2dd105e30d
commit
4a4b1b9044
6 changed files with 24 additions and 13 deletions
|
@ -1,11 +1,11 @@
|
|||
[Unit]
|
||||
Description=Update distrobox for current user
|
||||
Description=Update everything for current user
|
||||
Wants=network-online.target
|
||||
After=network-online.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/libexec/azure-distrobox
|
||||
ExecStart=/usr/libexec/azure-topgrade
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
StartLimitInterval=0
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -f ~/.config/distrobox.ini ]; then
|
||||
echo "No distrobox config at ~/.config/distrobox.ini, skipping"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
notify-send "Azure Distrobox" "Updating distroboxes" -u NORMAL
|
||||
distrobox assemble create --file ~/.config/distrobox.ini
|
||||
notify-send "Azure Distrobox" "Finished updating distroboxes" -u NORMAL
|
5
files/usr/libexec/azure-topgrade
Executable file
5
files/usr/libexec/azure-topgrade
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
notify-send "Azure" "Running topgrade" -u NORMAL
|
||||
topgrade --config /usr/share/azure/topgrade.toml
|
||||
notify-send "Azure" "topgrade finished" -u NORMAL
|
9
files/usr/share/azure/topgrade.toml
Normal file
9
files/usr/share/azure/topgrade.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[misc]
|
||||
no_self_update = true
|
||||
disable = ["self_update", "toolbx", "containers", "helm", "nix"]
|
||||
ignore_failures = ["distrobox", "flatpak", "brew_cask", "brew_formula", "node", "pip3", "home_manager", "firmware"]
|
||||
assume_yes = true
|
||||
no_retry = false
|
||||
|
||||
[linux]
|
||||
rpm_ostree = true
|
Loading…
Add table
Add a link
Reference in a new issue