All handlers: stop using "local VAR" outside functions. (Closes: #530647)

This commit is contained in:
intrigeri 2011-04-25 18:55:58 +02:00
parent 2392094a24
commit 6aca9c822b
7 changed files with 11 additions and 9 deletions

View File

@ -4,6 +4,8 @@ version 0.9.9 -- UNRELEASED
action. Thanks to Olivier Berger <oberger@ouvaton.org> for the patch.
(Closes: #511300)
handler changes
all handlers:
. Stop using "local VAR" outside functions. (Closes: #530647)
dup:
. Use --tempdir option rather than TMPDIR environment variable.
(Closes Roundup bug #598)

View File

@ -51,7 +51,7 @@ fi
### VServers
# If vservers are configured, check that the ones listed in $vsnames do exist.
local usevserver=no
usevserver=no
if [ $vservers_are_available = yes ]; then
if [ "$vsnames" = all ]; then
vsnames="$found_vservers"

View File

@ -24,8 +24,8 @@ getconf configfile /etc/mysql/debian.cnf
# Decide if the handler should operate on a vserver or on the host.
# In the former case, check that $vsname exists and is running.
local usevserver=no
local vroot
usevserver=no
vroot=''
if [ $vservers_are_available = yes ]; then
if [ -n "$vsname" ]; then
# does it exist ?

View File

@ -15,8 +15,8 @@ localhost=`hostname`
# Decide if the handler should operate on a vserver or on the host.
# In the former case, check that $vsname exists and is running.
local usevserver=no
local vroot
usevserver=no
vroot=''
if [ $vservers_are_available = yes ]; then
if [ -n "$vsname" ]; then
# does it exist ?

View File

@ -115,7 +115,7 @@ fi
### CHECK CONFIG ###
# If vservers are configured, check that the ones listed in $vsnames do exist.
local usevserver=no
usevserver=no
if [ $vservers_are_available = yes ]; then
if [ "$vsnames" = all ]; then
vsnames="$found_vservers"

View File

@ -14,8 +14,8 @@ error=0
# Decide if the handler should operate on a vserver or on the host.
# In the former case, check that $vsname exists and is running.
local usevserver=no
local vroot
usevserver=no
vroot=''
if [ $vservers_are_available = yes ]; then
if [ -n "$vsname" ]; then
# does it exist ?

View File

@ -103,7 +103,7 @@ getconf lvm no
getconf vsnames all
# If vservers are configured, check that the ones listed in $vsnames are running.
local usevserver=no
usevserver=no
if [ $vservers_are_available = yes ]; then
if [ "$vsnames" = all ]; then
vsnames="$found_vservers"