sergio_educacionit

updater.os.sh

Sep 6th, 2025
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # conulstar logs:
  4. # journalctl -t updater.os
  5.  
  6. echo "Actualizando apt..."
  7. apt update && apt upgrade -y 2>&1 | tee >(logger -t updater.os)
  8.  
  9.  
  10. if which snap > /dev/null; then
  11.    
  12.     echo "Actualizando snap..."
  13.     snap refresh 2>&1 | tee >(logger -t updater.os)
  14.  
  15. fi
  16.  
  17. if which pip > /dev/null || which pip3 /dev/null;then
  18.  
  19.  
  20.     echo "Actualizando pip..."
  21.  
  22.     pip list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip install -U  2>&1 | tee >(logger -t updater.os)
  23. fi
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment