#!/bin/sh
# upgrade.sh - outil de mise à jour de serveur, avec support OpenVZ
-# Copyright ©2010 Agence universitaire de la Francophonie
-# http://www.auf.org/
+# Copyright ©2010-2011 Agence universitaire de la Francophonie
+# http://www.auf.org/
# Licence : GNU General Public License, version 3
# Auteur : Progfou <jean-christophe.andre@auf.org>
# Création : 2010-01-26
-# Mise à jour : 2010-01-26
+# Mise à jour : 2011-03-06
export LANG=
CONFDIRS="/etc"
IPT="iptables"
then
$IPT -I FORWARD -o "$IF" -p tcp --dport 80 -j ACCEPT
$IP6T -I FORWARD -o "$IF" -p tcp --dport 80 -j ACCEPT
- shopt -s nullglob
for id in `vzlist -H -o ctid`
do
#vzctl exec $id rm -v -f /var/lib/apt/lists/partial/*