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
21b39552
Commit
21b39552
authored
19 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
r214@um: micah | 2005-12-27 09:35:03 -0500
Added vserver functionality to the user authentication method
parent
f4664660
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
+19
-2
19 additions, 2 deletions
handlers/mysql
with
19 additions
and
2 deletions
handlers/mysql
+
19
−
2
View file @
21b39552
...
@@ -52,8 +52,25 @@ if [ "$user" == "" ]; then
...
@@ -52,8 +52,25 @@ if [ "$user" == "" ]; then
user=root;
user=root;
else
else
userset=true;
userset=true;
userhome=`getent passwd "$user" | awk -F: '{print $6}'`
if [ $usevserver ]
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
then
userhome=`$VSERVER $vsname exec getent passwd "$user" | awk -F: '{print $6}'`
if [ $? -eq 2 ]
then
fatal "User $user not found in /etc/passwd"
fi
userhome="$VROOTDIR/$vsname$userhome"
info "User home set to: $userhome"
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
else
userhome=`getent passwd "$user" | awk -F: '{print $6}'`
if [ $? -eq 2 ]
then
fatal "User $user not found in /etc/passwd"
fi
info "User home set to: $userhome"
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
fi
fi
fi
## Prepare ignore part of the command
## Prepare ignore part of the command
...
...
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