Codebase list metche / 6e62239
Remove (not that working) vserver support for 1.0 Lunar 18 years ago
3 changed file(s) with 9 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
88 Architecture: all
99 Depends: debconf, mutt, bzip2
1010 Recommends: apt-show-versions, gnupg
11 Suggests: util-vserver
1211 Description: configuration monitor to ease collective administration
1312 metche monitors changes made to a "system state" composed of:
1413 - a "watched" directory (typically: /etc)
2626 ###
2727
2828 display_usage() {
29 ( echo "Usage: `basename $0` [-h HOST] list"
30 echo " `basename $0` [-h HOST] report" \
29 ( echo "Usage: `basename $0` list"
30 echo " `basename $0` report" \
3131 "[{stable|testing|unstable}-YYYYMMDDHHMM]"
32 echo " `basename $0` [-h HOST] cron"
33 echo " `basename $0` [-h HOST] stabilize [testing-YYYYMMDDHHMM]"
34 echo "If -h is specified, /etc/metche/HOST.conf is used" \
35 "instead of /etc/metche.conf."
32 echo " `basename $0` cron"
33 echo " `basename $0` stabilize [testing-YYYYMMDDHHMM]"
3634 echo ""
3735 ) >&2
3836 }
8785 blkid.tab* aumixrc net.enable mtab \
8886 vdirbase run.rev vdir run.rev"
8987 LOCALE="C"
90 VSERVER_EXEC_PREFIX=""
9188
9289 _MAIL_SUBJECT="`hostname -f` - changes report"
9390 _NO_DEBIAN_PACKAGES_CHANGE="No change in Debian packages state."
289286 # This will save packages list with the given prefix
290287 save_packages() {
291288 debug " - save_packages $@"
292 $VSERVER_EXEC_PREFIX apt-show-versions -i
293 $VSERVER_EXEC_PREFIX apt-show-versions |
289 apt-show-versions -i
290 apt-show-versions |
294291 sort > "$BACKUP_DIR/$1-$DATE".packages
295292 ln -sf "$1-$DATE".packages "$BACKUP_DIR/$1"-latest.packages
296293 }
399396 echo "$DEBIAN_PACKAGES_HEADER" >> "$tmp"
400397
401398 tmp_packages=`mktemp -q`
402 $VSERVER_EXEC_PREFIX apt-show-versions -i
403 $VSERVER_EXEC_PREFIX apt-show-versions | sort > "$tmp_packages"
399 apt-show-versions -i
400 apt-show-versions | sort > "$tmp_packages"
404401 if diff -wEbB "$BACKUP_DIR/$1".packages "$tmp_packages"; then
405402 echo "$_NO_DEBIAN_PACKAGES_CHANGE"
406403 fi | grep -v '^[0-9-]' >> "$tmp"
4949 # Warning: values different from "C" are untested.
5050 #LOCALE="C"
5151
52 # Prefix that will be prepended to the commands that should be run
53 # inside a vserver
54 VSERVER_EXEC_PREFIX=""
55 #VSERVER_EXEC_PREFIX="/usr/sbin/vserver blabla exec"
56
5752 # Set this to yes to get more debugging output.
5853 # (default: enabled until metche 1.0 is released)
5954 #DEBUG=no
6560
6661 # Add your custom headers below
6762
68 #_MAIL_SUBJECT="`$VSERVER_EXEC_PREFIX hostname -f` - changes report"
63 #_MAIL_SUBJECT="`hostname -f` - changes report"
6964 #_NO_DEBIAN_PACKAGES_CHANGE="No change in Debian packages state."
7065 #_NO_CHANGE="No change."
7166 #MAIN_HEADER=""