update

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
update [2024/08/31 13:47] – steveupdate [2026/02/20 19:46] (current) – steve
Line 3: Line 3:
 <code bash Update> <code bash Update>
 #!/bin/bash #!/bin/bash
-# +# /usr/local/bin/Update 
-# This allows updating software by a single common command on all my machines+# This allows updating software by a single common command on all my machines.
    
 Logs=~/.Logs/$(date +"%Y/%m/%d") Logs=~/.Logs/$(date +"%Y/%m/%d")
Line 13: Line 13:
 ### SRJ 2015-03-27   This script allows a user to update the local        ### ### SRJ 2015-03-27   This script allows a user to update the local        ###
 ### machine without further credentials, it requires that a file be       ### ### machine without further credentials, it requires that a file be       ###
-### created in /etc/sudoers.d/update with the lines below;                ### +### created in /etc/sudoers.d/Update with the lines below;                ### 
-###                                                                       ### +### See; https://wiki.cyli.org/doku.php?id=auto_update_without_password   ###
-### ## Installation and management of software                            ### +
-### Cmnd_Alias SOFTWARE_UPDATE = /bin/rpm, /usr/bin/up2date, \            ### +
-###  /usr/bin/dnf, /usr/bin/rkhunter, /usr/bin/needs-restarting, \        ### +
-###  /usr/bin/etckeeper, /usr/bin/tig                                     ### +
-### %wheel ALL = NOPASSWD: SOFTWARE_UPDATE                                ### +
-###                                                                       ### +
-###     #  -or this, as appropriate-                                      ### +
-###                                                                       ### +
-### Cmnd_Alias SOFTWARE_UPDATE = /usr/local/bin/apt, /usr/bin/apt-get     ### +
-### %sudo ALL = NOPASSWD: SOFTWARE_UPDATE                                 ### +
-###                                                                       ### +
-### This allows all users in the 'wheel' or 'sudo' group to run updates.  ###+
 ############################################################################# #############################################################################
    
Line 36: Line 24:
                 ;;                 ;;
    
-        "Linux Mint 21"|"Linux Mint 21.1"|"Linux Mint 21.2"|"Linux Mint 21.3"|"Linux Mint 22")+        "Linux Mint 21.3"|"Linux Mint 22"|"Linux Mint 22.1"|"Linux Mint 22.2"|"Linux Mint 22.3")
                 System="Deb"                 System="Deb"
                 ;;                 ;;
   
- "Debian GNU/Linux 12 (bookworm)"+ "Debian GNU/Linux 12 (bookworm)"|"Debian GNU/Linux 13 (trixie)")
  System="Deb"  System="Deb"
  ;;  ;;
  
- "Rocky Linux 9.4 (Blue Onyx)")+ "Rocky Linux 9.7 (Blue Onyx)"|"Rocky Linux 9.8 (Blue Onyx)"|"Rocky Linux 10.0 (Red Quartz)")
  System="NewRH"  System="NewRH"
  ;;  ;;
Line 51: Line 39:
                 System="Unknown"                 System="Unknown"
                 echo "This system is unknown, please update this script and add a check"                 echo "This system is unknown, please update this script and add a check"
-                echo "for the pattern ${PRETTY_NAME} to ease updating."+                echo "for the pattern;" 
 +                echo "${PRETTY_NAME}"
                 echo "Then update https://wiki.cyli.org/doku.php?id=update"                 echo "Then update https://wiki.cyli.org/doku.php?id=update"
                 exit 127                 exit 127
Line 92: Line 81:
 fi fi
 </code> </code>
 +\\
 +The /etc/sudoers.d/Update script is [[auto_update_without_password|Auto update without a password]]
update.1725112037.txt.gz · Last modified: by steve