Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
921babdf
Commit
921babdf
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
mysql,pgsql,svn,sys: fixed failing "is vserver running" test
parent
d5c8686e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
handlers/mysql
+1
-1
1 addition, 1 deletion
handlers/mysql
handlers/pgsql
+1
-1
1 addition, 1 deletion
handlers/pgsql
handlers/svn
+1
-1
1 addition, 1 deletion
handlers/svn
handlers/sys
+1
-1
1 addition, 1 deletion
handlers/sys
with
4 additions
and
4 deletions
handlers/mysql
+
1
−
1
View file @
921babdf
...
@@ -57,7 +57,7 @@ then
...
@@ -57,7 +57,7 @@ then
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
running=`$VSERVERINFO $vsname RUNNING`
[ $running =
1
] || fatal "vserver $vsname is not running."
[
"
$running
"
=
"1"
] || fatal "vserver $vsname is not running."
fi
fi
# create backup dirs, the vroot variable will be empty if no vsname was specified
# create backup dirs, the vroot variable will be empty if no vsname was specified
...
...
This diff is collapsed.
Click to expand it.
handlers/pgsql
+
1
−
1
View file @
921babdf
...
@@ -30,7 +30,7 @@ if [ $usevserver ]; then
...
@@ -30,7 +30,7 @@ if [ $usevserver ]; then
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
running=`$VSERVERINFO $vsname RUNNING`
if [ $running =
1
]; then
if [
"
$running
"
=
"1"
]; then
if [ "$databases" == "all" ]; then
if [ "$databases" == "all" ]; then
[ -x "$vroot`$VSERVER $vsname exec which $PGSQLDUMPALL`" ] || \
[ -x "$vroot`$VSERVER $vsname exec which $PGSQLDUMPALL`" ] || \
fatal "Can't find $PGSQLDUMPALL in vserver $vsname."
fatal "Can't find $PGSQLDUMPALL in vserver $vsname."
...
...
This diff is collapsed.
Click to expand it.
handlers/svn
+
1
−
1
View file @
921babdf
...
@@ -32,7 +32,7 @@ then
...
@@ -32,7 +32,7 @@ then
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
running=`$VSERVERINFO $vsname RUNNING`
[ $running =
1
] || fatal "vserver $vsname is not running."
[
"
$running
"
=
"1"
] || fatal "vserver $vsname is not running."
fi
fi
cd $vroot$src
cd $vroot$src
...
...
This diff is collapsed.
Click to expand it.
handlers/sys
+
1
−
1
View file @
921babdf
...
@@ -52,7 +52,7 @@ if [ "$packages" == "yes" ]; then
...
@@ -52,7 +52,7 @@ if [ "$packages" == "yes" ]; then
do
do
info "examining vserver: $vserver"
info "examining vserver: $vserver"
running=`$VSERVERINFO $vserver RUNNING`
running=`$VSERVERINFO $vserver RUNNING`
if [ $running =
1
]; then
if [
"
$running
"
=
"1"
]; then
if [ ! -x "$VROOTDIR/$vserver`$VSERVER $vserver exec which dpkg`" ]; then
if [ ! -x "$VROOTDIR/$vserver`$VSERVER $vserver exec which dpkg`" ]; then
warning "can't find dpkg in vserver $vserver, skipping installed packages report."
warning "can't find dpkg in vserver $vserver, skipping installed packages report."
nodpkg="$nodpkg|$vserver"
nodpkg="$nodpkg|$vserver"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment