Skip to content
Snippets Groups Projects
Commit 52d4622f authored by micah's avatar micah :speech_balloon:
Browse files

r216@um: micah | 2005-12-27 09:50:17 -0500

 Set home properly when using vservers
parent 5d835a79
Branches
Tags
No related merge requests found
...@@ -120,8 +120,11 @@ then ...@@ -120,8 +120,11 @@ then
if [ $usevserver ] if [ $usevserver ]
then then
home=`$VSERVER $vsname exec getent passwd "root" | awk -F: '{print $6}'` home=`$VSERVER $vsname exec getent passwd "root" | awk -F: '{print $6}'`
home="$vroot$home"
info "Home set to: $home"
else else
home=`getent passwd "root" | awk -F: '{print $6}'` home=`getent passwd "root" | awk -F: '{print $6}'`
info "Home set to: $home"
fi fi
[ -d $home ] || fatal "Can't find root's home directory ($home)." [ -d $home ] || fatal "Can't find root's home directory ($home)."
mycnf="$home/.my.cnf" mycnf="$home/.my.cnf"
...@@ -151,7 +154,7 @@ EOF ...@@ -151,7 +154,7 @@ EOF
umask $oldmask umask $oldmask
defaultsfile="--defaults-file=$mycnf" defaultsfile="--defaults-file=$mycnf"
elif [ "$userset" == "false" ]; then elif [ "$userset" == "false" ]; then
# if user is set, don't use $configfile # if user is set, don't use $mycnf
defaultsfile="--defaults-file=$configfile" defaultsfile="--defaults-file=$configfile"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment