From 348b1fb62718397e8b5f8ac4c4190db4a7c737c9 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 1 Oct 2023 17:53:47 +0000 Subject: [PATCH] add auto system update script --- pepscripts/07-update-system | 14 ++++++++++++++ pepscripts/07final-cleanup | 3 --- pepscriptsdev/07-update-system | 14 ++++++++++++++ pepscriptsdev/07final-cleanup | 3 --- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 pepscripts/07-update-system create mode 100644 pepscriptsdev/07-update-system diff --git a/pepscripts/07-update-system b/pepscripts/07-update-system new file mode 100644 index 0000000..4579112 --- /dev/null +++ b/pepscripts/07-update-system @@ -0,0 +1,14 @@ +#!/bin/sh -e + +# SPDX-License-Identifier: GPL-3.0-or-later +# +# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me) + +# This script updates the system after Debian installation. + +# Update the system +chroot /target apt update +chroot /target apt upgrade -y + +# Clean up unnecessary packages +chroot /target apt autoremove -y diff --git a/pepscripts/07final-cleanup b/pepscripts/07final-cleanup index 432ed33..47f7f8e 100755 --- a/pepscripts/07final-cleanup +++ b/pepscripts/07final-cleanup @@ -22,6 +22,3 @@ chroot /target apt purge --autoremove -y \ # Clean unnecessary files rm -r /target/boot/firmware - -# system update -chroot /target apt update && apt upgrade -y diff --git a/pepscriptsdev/07-update-system b/pepscriptsdev/07-update-system new file mode 100644 index 0000000..4579112 --- /dev/null +++ b/pepscriptsdev/07-update-system @@ -0,0 +1,14 @@ +#!/bin/sh -e + +# SPDX-License-Identifier: GPL-3.0-or-later +# +# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me) + +# This script updates the system after Debian installation. + +# Update the system +chroot /target apt update +chroot /target apt upgrade -y + +# Clean up unnecessary packages +chroot /target apt autoremove -y diff --git a/pepscriptsdev/07final-cleanup b/pepscriptsdev/07final-cleanup index 513aeef..08bbd9c 100755 --- a/pepscriptsdev/07final-cleanup +++ b/pepscriptsdev/07final-cleanup @@ -21,6 +21,3 @@ chroot /target apt purge --autoremove -y \ # Clean unnecessary files rm -r /target/boot/firmware - -# system update -chroot /target apt update && apt upgrade -y