MDEV-20205 mysql_install_db shouldn't execute chown
Make chown error non-fatal. Just print a warning.
This commit is contained in:
parent
9d18b62467
commit
51a9571256
@ -487,7 +487,7 @@ then
|
|||||||
if test $? -ne 0
|
if test $? -ne 0
|
||||||
then
|
then
|
||||||
echo "Couldn't set an owner to '$pamtooldir/auth_pam_tool_dir/auth_pam_tool'."
|
echo "Couldn't set an owner to '$pamtooldir/auth_pam_tool_dir/auth_pam_tool'."
|
||||||
echo " It must be root, the PAM authentication plugin doesn't work otherwise.."
|
echo "It must be root, the PAM authentication plugin doesn't work otherwise.."
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -496,8 +496,8 @@ then
|
|||||||
if test $? -ne 0
|
if test $? -ne 0
|
||||||
then
|
then
|
||||||
echo "Cannot change ownership of the '$pamtooldir/auth_pam_tool_dir' directory"
|
echo "Cannot change ownership of the '$pamtooldir/auth_pam_tool_dir' directory"
|
||||||
echo " to the '$user' user. Check that you have the necessary permissions and try again."
|
echo "to the '$user' user. Check that you have the necessary permissions and try again."
|
||||||
exit 1
|
echo
|
||||||
fi
|
fi
|
||||||
args="$args --user=$user"
|
args="$args --user=$user"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user