From 219d94f75e4af5985d014d46392b40c5af554290 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Wed, 20 Apr 2022 02:16:24 +0200 Subject: [PATCH] Add update scripts --- scripts/root_update.sh | 15 +++++++++++++++ scripts/user_update.sh | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 scripts/root_update.sh create mode 100644 scripts/user_update.sh diff --git a/scripts/root_update.sh b/scripts/root_update.sh new file mode 100644 index 0000000..3c1cf3a --- /dev/null +++ b/scripts/root_update.sh @@ -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 diff --git a/scripts/user_update.sh b/scripts/user_update.sh new file mode 100644 index 0000000..fea7672 --- /dev/null +++ b/scripts/user_update.sh @@ -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