More work on system updates support.

This commit is contained in:
Storm Dragon
2025-10-10 17:39:42 -04:00
parent 865d6ed85e
commit cb43ef2026
2 changed files with 16 additions and 2 deletions

View File

@@ -5,7 +5,11 @@ Dates are given for the image. All items listed are available for the listed ima
## October 1, 2025
- Update system added
- System update option added in System menu
- Dedicated update user added for the system update functionality
- User name is patron
- Password is the Patreon password provided at the beginning of the month
- Credentials should only need updating when the password changes
- Add upload audiobook capability to upload server
- Wine configuration update (x86_64)
- System updates

View File

@@ -1,17 +1,27 @@
#!/usr/bin/env bash
# Stop the screen reader if this closes for any reason
trap 'sudo -n /usr/bin/systemctl stop fenrirscreenreader.service' SIGINT SIGTERM SIGHUP EXIT
# Start Fenrir for interaction with the terminal
sudo -n /usr/bin/systemctl start fenrirscreenreader.service
# Clear the screen before loading
clear
# Update system packages (run as stormux user since yay shouldn't run as root)
sudo -u stormux yay -Syu --noconfirm --removemake --cleanafter
gitUrl="https://git.stormux.org/storm/gaming-image-files"
gitPath="${gitUrl##*/}"
pushd /tmp || exit
git config --global credential.helper store
git clone "${gitUrl}"
pushd "${gitPath}" || exit
git checkout master
git lfs pull
# Files and directories to ignore when copying
ignoreFiles=(".git" "./image" ".git*" "/home/stormux/.w3m")
ignoreFiles=(".git" "./image" ".git*" "/home/stormux/.w3m" "/home/stormux/.irssi")
# Build find command with ignore patterns
findArgs=()
for ignore in "${ignoreFiles[@]}"; do