1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Add update scripts

This commit is contained in:
Mo 2022-04-20 02:16:24 +02:00
parent 1e264dfc80
commit 219d94f75e
2 changed files with 35 additions and 0 deletions

15
scripts/root_update.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
SDIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
source "$SDIR/shared.sh"
echo "\n\n___________________\n\n"
box "$(date)" "Update on: "
box "Update system packages"
sudo apt update
sudo apt upgrade -y
sudo reboot

20
scripts/user_update.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
SDIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
source "$SDIR/shared.sh"
echo "\n\n___________________\n\n"
box "$(date)" "Update on: "
box "Upgrade pipx"
install_latest_pipx
box "Upgrade pipx packages"
pipx upgrade-all --include-injected
# TODO: Backup
box "Install latest Poetry packages"
poetry_install_latest