Playbook für die Nextcloud Notfalleinrichtung.

This commit is contained in:
2025-08-18 10:08:39 +02:00
parent 99a9fbc8ae
commit 3a876c13a9
24 changed files with 516 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# System-Updater CC-BY Olli Graf
# V 1.6 2019
VERSION="1.7"
TMPFILE="/tmp/updater.txt"
echo "Updater V ${VERSION}"
sudo rm -f ${TMPFILE}
sudo apt-get update
sudo apt-get dist-upgrade -y --allow-unauthenticated |tee ${TMPFILE}
sudo snap refresh
sudo apt-get autoremove -y
if grep -q linux-header ${TMPFILE}; then
echo "reboot nötig"
read -n1 -p "Neustart? (J/N)" auswahl
if [ "${auswahl}" == "j" ]; then
echo "System wird gestartet."
sudo reboot
fi
fi