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
96023985
Commit
96023985
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
lib/vserver.in[init_vservers]: warn if vservers are enabled but no vserver is found
parent
49f1d7f8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
lib/vserver.in
+5
-1
5 additions, 1 deletion
lib/vserver.in
with
6 additions
and
1 deletion
ChangeLog
+
1
−
0
View file @
96023985
...
...
@@ -32,6 +32,7 @@ version 0.9.3 -- unreleased
. init_vservers: test in a stricter way the real vservers availability
. init_vservers: canonicalize VROOTDIR (since duplicity et al.
don't follow symlinks)
. init_vservers: warn if vservers are enabled but no vserver is found
known bugs:
easydialog:
. formDisplay does not return exit status.
...
...
This diff is collapsed.
Click to expand it.
lib/vserver.in
+
5
−
1
View file @
96023985
...
...
@@ -64,7 +64,11 @@ init_vservers() {
return
fi
found_vservers
=
`
ls
$VROOTDIR
|
grep
-E
-v
"lost+found|ARCHIVES"
|
tr
"
\n
"
" "
`
[
-n
"
$found_vservers
"
]
||
return
if
[
-z
"
$found_vservers
"
]
;
then
`
if
[
"
$arg
"
=
nodialog
]
;
then
echo
warning
;
else
echo
"msgBox warning"
;
fi
`
\
"vservers enabled in
$conffile
, but no vserver was found in
$VROOTDIR
."
;
return
fi
vservers_are_available
=
yes
fi
}
...
...
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