User Tools

Site Tools


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 [2025/02/04 15:27] steveupdate [2025/02/04 16:06] (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;                ###
 ###                                                                       ### ###                                                                       ###
 ### ## Installation and management of software                            ### ### ## Installation and management of software                            ###
Line 23: Line 23:
 ###     #  -or this, as appropriate-                                      ### ###     #  -or this, as appropriate-                                      ###
 ###                                                                       ### ###                                                                       ###
-### Cmnd_Alias SOFTWARE_UPDATE = /usr/local/bin/apt, /usr/bin/apt-get     ###+### Cmnd_Alias SOFTWARE_UPDATE = /usr/local/bin/apt, /usr/bin/apt-get, \  ### 
 +###     /usr/bin/tig                                                      ###
 ### %sudo ALL = NOPASSWD: SOFTWARE_UPDATE                                 ### ### %sudo ALL = NOPASSWD: SOFTWARE_UPDATE                                 ###
 ###                                                                       ### ###                                                                       ###
Line 36: Line 37:
                 ;;                 ;;
    
-        "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")
                 System="Deb"                 System="Deb"
                 ;;                 ;;
update.1738682843.txt.gz · Last modified: by steve