move all existing in subfolders

This commit is contained in:
trnq1ll0 committed 2025-03-11 23:16:02 +01:00
1 parent cc069f63ef
commit 6491336e60
48 files changed

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
#/bin/bash
echo "Step one: update everything"
echo "==========================="
echo ""
read -n1 -s -r -p $'run now: $sudo dnf upgrade --refresh (Enter = run)' key
if [ "$key" = "" ]; then
sudo dnf upgrade --refresh
read -n1 -s -r -p $'and reboot your computer now! (Enter = reboot)' key
if [ "$key" = "" ]; then
reboot
fi
fi
echo ""
echo ""
echo "Step two: install dnf-plugin-system-upgrade"
echo "==========================================="
echo ""
read -n1 -s -r -p $'run now: $sudo dnf install dnf-plugin-system-upgrade (Enter = run)' key
if [ "$key" = "" ]; then
sudo dnf install dnf-plugin-system-upgrade
fi
## get actual version in variable $VERSION_ID
source /etc/os-release
let NEXT_VERSION=$VERSION_ID+1
echo ""
echo ""
echo "Step three: system-upgrade download Version $NEXT_VERSION"
echo "==================================================="
echo ""
read -n1 -s -r -p $"run now: sudo dnf system-upgrade download --releasever=$NEXT_VERSION (Enter = run)" key
if [ "$key" = "" ]; then
sudo dnf system-upgrade download --releasever=$NEXT_VERSION
fi
echo ""
echo ""
echo "Step four: start the upgrade"
echo "============================"
echo ""
read -n1 -s -r -p $'run now: dnf system-upgrade reboot (Enter = run)' key
if [ "$key" = "" ]; then
sudo dnf system-upgrade reboot
fi
echo ""
echo ""
echo "Step five: clean the upgrade"
echo "============================"
echo ""
read -n1 -s -r -p $'run now: dnf system-upgrade clean (Enter = run)' key
if [ "$key" = "" ]; then
sudo dnf system-upgrade clean && dnf clean packages
fi