Codebase list metche / ec76a31
trunk: added the possibility to set VSNAMES to "all" intrigeri 18 years ago
2 changed file(s) with 27 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
201201 test -d "$VROOTDIR" || \
202202 fatal "VSNAMES is not empty, but VROOTDIR ($VROOTDIR) does not exist." \
203203 "Please set VROOTDIR in /etc/metche.conf."
204 # expand VSNAMES if it is set to "all"
205 if [ "$VSNAMES" = all ]; then
206 VSNAMES=`ls $VROOTDIR | grep -E -v "lost\+found|ARCHIVES" | tr "\n" " "`
207 if [ -z "$VSNAMES" ]; then
208 warning "VSNAMES is set to \"all\", but no VServer could be found" \
209 "in VROOTDIR ($VROOTDIR)."
210 fi
211 fi
204212 fi
205213
206214 if [ "$ENCRYPT_EMAIL" = "yes" ]; then
773781 ;;
774782
775783 test)
776 context_config "$VSNAME" || fatal "Aborting (error $?)."
777 milestone_version "stable-200507040202"
778 milestone_version "testing-latest"
779 milestone_date "testing-latest"
780 #report_changes "testing-latest" | email "testing-$DATE"
784 for i in "" $VSNAMES; do
785 res=0
786 context_config "$i" || res=$?
787 if [ $res -ne 0 ]; then
788 warning "-------- Ignoring" \
789 "`if [ -z $i ]; then \
790 echo 'the host system'; \
791 else \
792 echo VServer $i; fi` (error $res)"
793 continue
794 fi
795 milestone_version "stable-200507040202"
796 milestone_version "testing-latest"
797 milestone_date "testing-latest"
798 #report_changes "testing-latest" | email "testing-$DATE"
799 done
781800 ;;
782801
783802 *)
5959 #
6060
6161 # VServers to monitor (space-separated list)
62 # NB: the host system is monitored, whatever VSERVERS is set to.
62 # The host system is monitored, whatever VSERVERS is set to.
63 # Set VSNAMES to "all" in order to monitor all VServers.
6364 #VSNAMES=""
65 #VSNAMES="all"
6466
6567 # vserver-info command location
6668 #VSERVERINFO=/usr/sbin/vserver-info