2022-04-13 21:26:51 +02:00
|
|
|
--- a/scripts/mysql_install_db.sh
|
|
|
|
+++ b/scripts/mysql_install_db.sh
|
|
|
|
@@ -472,47 +472,8 @@
|
2019-08-04 20:55:56 +02:00
|
|
|
fi
|
|
|
|
chmod 700 "$dir"
|
|
|
|
fi
|
|
|
|
- if test -n "$user"
|
2019-09-24 17:49:17 +02:00
|
|
|
- then
|
2022-04-13 21:26:51 +02:00
|
|
|
- if test -z "$group"
|
|
|
|
- then
|
|
|
|
- chown $user $dir
|
|
|
|
- else
|
|
|
|
- chown $user:$group $dir
|
|
|
|
- fi
|
2019-09-24 17:49:17 +02:00
|
|
|
- if test $? -ne 0
|
|
|
|
- then
|
|
|
|
- echo "Cannot change ownership of the database directories to the '$user'"
|
|
|
|
- echo "user. Check that you have the necessary permissions and try again."
|
|
|
|
- exit 1
|
|
|
|
- fi
|
|
|
|
- fi
|
2019-08-04 20:55:56 +02:00
|
|
|
done
|
|
|
|
|
2020-02-17 12:04:44 +01:00
|
|
|
-if test -n "$user"
|
|
|
|
-then
|
|
|
|
- if test -z "$srcdir" -a "$in_rpm" -eq 0
|
2019-09-24 17:49:17 +02:00
|
|
|
- then
|
2020-02-17 12:04:44 +01:00
|
|
|
- chown 0 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool" && \
|
|
|
|
- chmod 04755 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool"
|
2019-09-24 17:49:17 +02:00
|
|
|
- if test $? -ne 0
|
|
|
|
- then
|
|
|
|
- echo "Couldn't set an owner to '$pamtooldir/auth_pam_tool_dir/auth_pam_tool'."
|
2020-02-17 12:04:44 +01:00
|
|
|
- echo "It must be root, the PAM authentication plugin doesn't work otherwise.."
|
|
|
|
- echo
|
|
|
|
- fi
|
|
|
|
- chown $user "$pamtooldir/auth_pam_tool_dir" && \
|
|
|
|
- chmod 0700 "$pamtooldir/auth_pam_tool_dir"
|
|
|
|
- if test $? -ne 0
|
|
|
|
- then
|
|
|
|
- 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."
|
2019-09-24 17:49:17 +02:00
|
|
|
- echo
|
|
|
|
- fi
|
|
|
|
- fi
|
2020-02-17 12:04:44 +01:00
|
|
|
- args="$args --user=$user"
|
|
|
|
-fi
|
|
|
|
-
|
2022-04-13 21:26:51 +02:00
|
|
|
if test -n "$group"
|
2020-02-17 12:04:44 +01:00
|
|
|
then
|
2022-04-13 21:26:51 +02:00
|
|
|
args="$args --group=$group"
|