SlackCheck allows users to keep many Slackware machines up to date with the latest packages. All upgrades are performed from single machine though SSH (or RSH). It generates an upgrade script and list of non-standard packages for every machine. https://georgi.unixsol.org/programs/slackcheck/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.sh 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #!/bin/sh
  2. # SlackCheck configuration file
  3. #
  4. # $Id: config.sh,v 1.11 2009/05/20 11:10:15 gf Exp $
  5. #
  6. PATH="/bin:/usr/bin:/usr/local/bin"
  7. # Can be 8.1, 9.0, 9.1 or current
  8. SLACK_VER="current"
  9. # Where to look for upgrades
  10. # *** If you want patches directory to be checked this directory
  11. # *** must point to / directory of the slackware mirror. Not slackware/
  12. # *** directory.
  13. DL_HOST="http://mirrors.unixsol.org/slackware/slackware-${SLACK_VER}"
  14. #DL_HOST="http://www.slackware.no/slackware/slackware-${SLACK_VER}"
  15. #DL_HOST="http://www.slackware.at/data/slackware-${SLACK_VER}"
  16. #DL_HOST="ftp://ftp.slackware.com/pub/slackware/slackware-${SLACK_VER}"
  17. #DL_HOST="http://ftp.planetmirror.com/pub/slackware/slackware-${SLACK_VER}"
  18. # Slackware is somewhere on the local disk
  19. # If you want to upgrade packages from Slackware CD, mount Slack CD-ROM
  20. # to /mnt/cdrom (mount /dev/cdrom /mnt/cdrom) and uncomment the line bellow
  21. #DL_HOST="/mnt/cdrom"
  22. #DL_HOST="/home/gf/mnt/slack/mirror/slackware-current"
  23. # Set variable to "0" if you dont want some of the functionality
  24. MD5_CHECK="1" # Check md5 sums of downloaded packages
  25. SIG_CHECK="1" # Check digital signatures of downloaded packages
  26. HOSTS_FILE="update_hosts" # In this file are listed hosts that will be upgraded
  27. REMOTE_DIR="Updates" # Upgraded packages will be downloaded in this
  28. # directory on the remote machine.
  29. # Make sure it has enough disk space!
  30. # After generating upgrade scripts you can change
  31. # this variable per host
  32. REMOTE_DIR_DEL="1" # Delete directory with downloaded packages after
  33. # finishing updates
  34. SMART_UPGRADE="1" # When lilo-* or kernel-* packages are updated run
  35. # "lilo" command. If lilo is not run after upgrading
  36. # these packages, your system probably wont boot.
  37. # This program will be used to download files from web
  38. DL_PRG="wget"
  39. DL_PRG_OPTS="--progress=bar:force"
  40. # Used for ftp downloads
  41. echo $DL_HOST | grep ^ftp://
  42. if [ $? = 0 ]; then
  43. DL_PRG="wget"
  44. DL_PRG_OPTS="--passive --progress=bar:force"
  45. fi
  46. # If files are on the local disk
  47. echo $DL_HOST | grep ^/
  48. if [ $? = 0 ]; then
  49. DL_PRG="ln"
  50. DL_PRG_OPTS="-sfv"
  51. fi
  52. # These programs will be used in collection and updating hosts
  53. RSH_LISTS="ssh"
  54. RSH_UPGRADE="ssh -l root"
  55. # NO NEED TO TOUCH ANYTHING BELLOW THIS LINE :)
  56. SLACK_HOSTS=`grep -v ^# $HOSTS_FILE`
  57. [ $? = 0 ] || exit
  58. DIR_PKG="packages" # Package lists directory
  59. DIR_UPD="updates" # Update scripts directory
  60. FILE_NEWEST="PKG_LAST" # Latest packages filename
  61. FILE_UNKPACKS="Non_dist-" # Non distro packages per host
  62. FILE_UPDATES="Updates-" # Update script per host
  63. if [ "$INC_CONFIG" != "0" ]
  64. then
  65. echo "Do not run $0 directly. Run ./slcheck.sh instead!"
  66. fi
  67. INC_CONFIG="1"