ps_tokudb_admin emits "This script must be run as root"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.6 |
Confirmed
|
Undecided
|
EvgeniyPatlan | |||
5.7 |
Fix Released
|
Undecided
|
EvgeniyPatlan |
Bug Description
It's a good idea to run whole docker entry point as user:
https:/
https:/
If I try to I'm installing percona-
ps_tokudb_admin complains:
ERROR: This script must be run as root!
and after disabling this check:
/usr/bin/
ERROR: Failed to add thp-setting=never option into /etc/mysql/my.cnf
I've disabled both checks in my repository:
--- ps_tokudb_
+++ ps_tokudb_admin 2017-04-13 06:03:42.466195622 +0300
@@ -149,7 +149,7 @@ done
# Make sure only root can run this script
if [ $(id -u) -ne 0 ]; then
echo "ERROR: This script must be run as root!" 1>&2
- exit 1
+ #exit 1
fi
if [ $ENABLE = 1 -a $DISABLE = 1 ]; then
@@ -312,6 +312,7 @@ if [ $ENABLE = 1 -o $DISABLE = 1 ]; then
if [ $FULL_SYSTEMD_MODE = 0 ]; then
printf "Checking if thp-setting=never option is already set in config file...\n"
STATUS_
+ STATUS_THP_MYCNF=1
if [ $STATUS_THP_MYCNF = 0 ]; then
printf "INFO: Option thp-setting=never is not set in the config file.\n"
printf " (needed only if THP is not disabled permanently on the system)\n\n"
Desired behavior:
Do not fail tokudb installation if thp settings already madvise|never.
Settings could be changed on host, outside container.
TokuDB could be installed and started as user without write permissions for /etc/*my.cnf
Changed in percona-server: | |
assignee: | nobody → EvgeniyPatlan (evgeniy-patlan) |
Changed in percona-server: | |
status: | New → Confirmed |
This is already known issue. I'm working on it