aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-04-25 18:55:58 +0200
committerintrigeri <intrigeri@boum.org>2011-04-25 18:55:58 +0200
commit6aca9c822b640372b0fad24d2a3a288ef2cd6a0f (patch)
tree3ee69280b1f12fc64859ba029a97db1fb913e42f
parent2392094a242248f702ebfcb4644f623d2d3aedde (diff)
downloadbackupninja-6aca9c822b640372b0fad24d2a3a288ef2cd6a0f.tar.gz
backupninja-6aca9c822b640372b0fad24d2a3a288ef2cd6a0f.tar.bz2
All handlers: stop using "local VAR" outside functions. (Closes: #530647)
-rw-r--r--ChangeLog2
-rw-r--r--handlers/dup.in2
-rw-r--r--handlers/mysql.in4
-rw-r--r--handlers/pgsql.in4
-rw-r--r--handlers/rdiff.in2
-rw-r--r--handlers/svn.in4
-rwxr-xr-xhandlers/sys.in2
7 files changed, 11 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a94593..29ce38d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/handlers/dup.in b/handlers/dup.in
index e3475b8..1d345a3 100644
--- a/handlers/dup.in
+++ b/handlers/dup.in
@@ -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"
diff --git a/handlers/mysql.in b/handlers/mysql.in
index 05ea396..185a98a 100644
--- a/handlers/mysql.in
+++ b/handlers/mysql.in
@@ -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 ?
diff --git a/handlers/pgsql.in b/handlers/pgsql.in
index ff71ebc..a50d3c7 100644
--- a/handlers/pgsql.in
+++ b/handlers/pgsql.in
@@ -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 ?
diff --git a/handlers/rdiff.in b/handlers/rdiff.in
index e391edd..c2f5aa0 100644
--- a/handlers/rdiff.in
+++ b/handlers/rdiff.in
@@ -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"
diff --git a/handlers/svn.in b/handlers/svn.in
index 5e5531a..bb70eee 100644
--- a/handlers/svn.in
+++ b/handlers/svn.in
@@ -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 ?
diff --git a/handlers/sys.in b/handlers/sys.in
index fcf3e31..101745c 100755
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -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"