mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-09 20:32:38 +01:00
All handlers: stop using "local VAR" outside functions. (Closes: #530647)
This commit is contained in:
parent
2392094a24
commit
6aca9c822b
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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 ?
|
||||
|
@ -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 ?
|
||||
|
@ -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"
|
||||
|
@ -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 ?
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user