Commit 51a95712 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-20205 mysql_install_db shouldn't execute chown

Make chown error non-fatal. Just print a warning.
parent 9d18b624
...@@ -487,7 +487,7 @@ then ...@@ -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 ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment