add auto system update script
This commit is contained in:
parent
5f594dab10
commit
348b1fb627
|
@ -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
|
|
@ -22,6 +22,3 @@ chroot /target apt purge --autoremove -y \
|
||||||
|
|
||||||
# Clean unnecessary files
|
# Clean unnecessary files
|
||||||
rm -r /target/boot/firmware
|
rm -r /target/boot/firmware
|
||||||
|
|
||||||
# system update
|
|
||||||
chroot /target apt update && apt upgrade -y
|
|
||||||
|
|
|
@ -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
|
|
@ -21,6 +21,3 @@ chroot /target apt purge --autoremove -y \
|
||||||
|
|
||||||
# Clean unnecessary files
|
# Clean unnecessary files
|
||||||
rm -r /target/boot/firmware
|
rm -r /target/boot/firmware
|
||||||
|
|
||||||
# system update
|
|
||||||
chroot /target apt update && apt upgrade -y
|
|
||||||
|
|
Loading…
Reference in New Issue