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
Custom issue tracker
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
Liberate
backupninja
Commits
f4664660
Commit
f4664660
authored
19 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
r213@um: micah | 2005-12-27 09:14:18 -0500
Move vserver initialization higher up in the chain
parent
0ad20d5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/mysql
+17
-16
17 additions, 16 deletions
handlers/mysql
with
17 additions
and
16 deletions
handlers/mysql
+
17
−
16
View file @
f4664660
...
...
@@ -17,22 +17,6 @@ getconf dbusername
getconf dbpassword
getconf configfile /etc/mysql/debian.cnf
if [ "$user" == "" ]; then
userset=false;
user=root;
else
userset=true;
userhome=`getent passwd "$user" | awk -F: '{print $6}'`
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
fi
## Prepare ignore part of the command
## This only works for mysqldump at the moment
ignore=''
for i in $ignores; do
ignore="$ignore --ignore-table=$i"
done
# If vservers are configured, decide if the handler should
# use them or if it should just operate on the host
...
...
@@ -62,6 +46,23 @@ then
fatal "vserver $vsname is not running."
fi
fi
if [ "$user" == "" ]; then
userset=false;
user=root;
else
userset=true;
userhome=`getent passwd "$user" | awk -F: '{print $6}'`
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
fi
## Prepare ignore part of the command
## This only works for mysqldump at the moment
ignore=''
for i in $ignores; do
ignore="$ignore --ignore-table=$i"
done
# create backup dirs, vroot variable will be empty if no vsname was specified
# and will proceed to operate on the host
...
...
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