apt-proxy 764 Bytes
Newer Older
1
#! /bin/sh
salles's avatar
salles committed
2
# $Log: apt-proxy,v $
Stephane Glondu's avatar
Stephane Glondu committed
3
# Revision 1.2  2006/05/01 06:17:22  salles
Xavier Lagorce's avatar
Xavier Lagorce committed
4 5
# Réécriture du script directement en shell, on éviter les timeouts de munin
# comme ça.
salles's avatar
salles committed
6 7 8 9 10 11
#
#
# Must run on aptproxy user or root
#


12 13 14 15 16 17 18 19 20 21 22 23
if [ "$1" = "config" ]; then
  echo "graph_title Files in apt-proxy cache"
  echo "graph_args --base 1000 -l 0"
  echo "graph_vlabel files"
  echo "main.label main"
  echo "main.info Packages in main"
  echo "main.draw AREA"
  echo "security.label security"
  echo "security.info Packages in security"
  echo "security.draw STACK"
  exit 0;
fi
salles's avatar
salles committed
24

25 26
main="/pubftp/apt-proxy/debian/pool/main ";
security="/pubftp/apt-proxy/security/pool/updates/main ";
salles's avatar
salles committed
27

28 29
echo "main.value" `find $main -type f | wc -l`
echo "security.value" `find $security -type f | wc -l`