summaryrefslogtreecommitdiff
path: root/files/scripts/CentOS
diff options
context:
space:
mode:
Diffstat (limited to 'files/scripts/CentOS')
-rw-r--r--files/scripts/CentOS/setmysqlpass.sh2
-rw-r--r--files/scripts/CentOS/setmysqlpass.sh.52
-rw-r--r--files/scripts/CentOS/setmysqlpass.sh.62
3 files changed, 3 insertions, 3 deletions
diff --git a/files/scripts/CentOS/setmysqlpass.sh b/files/scripts/CentOS/setmysqlpass.sh
index 6876cb9..62b5b2f 100644
--- a/files/scripts/CentOS/setmysqlpass.sh
+++ b/files/scripts/CentOS/setmysqlpass.sh
@@ -24,7 +24,7 @@ must_have chown
rootpw=$(grep password /root/.my.cnf | sed -e 's/^[^=]*= *\(.*\) */\1/')
-/usr/bin/mysqladmin -uroot --password="${rootpw}" status > /dev/null && echo "Nothing to do as the password already works" && exit 0
+/usr/bin/mysqladmin --defaults-file=/root/.my.cnf status > /dev/null && echo "Nothing to do as the password already works" && exit 0
/usr/bin/systemctl stop mariadb
diff --git a/files/scripts/CentOS/setmysqlpass.sh.5 b/files/scripts/CentOS/setmysqlpass.sh.5
index abd0931..b904487 100644
--- a/files/scripts/CentOS/setmysqlpass.sh.5
+++ b/files/scripts/CentOS/setmysqlpass.sh.5
@@ -4,7 +4,7 @@ test -f /root/.my.cnf || exit 1
rootpw=$(grep password /root/.my.cnf | sed -e 's/^[^=]*= *\(.*\) */\1/')
-/usr/bin/mysqladmin -uroot --password="${rootpw}" status > /dev/null && echo "Nothing to do as the password already works" && exit 0
+/usr/bin/mysqladmin --defaults-file=/root/.my.cnf status > /dev/null && echo "Nothing to do as the password already works" && exit 0
/sbin/service mysqld stop
diff --git a/files/scripts/CentOS/setmysqlpass.sh.6 b/files/scripts/CentOS/setmysqlpass.sh.6
index abd0931..b904487 100644
--- a/files/scripts/CentOS/setmysqlpass.sh.6
+++ b/files/scripts/CentOS/setmysqlpass.sh.6
@@ -4,7 +4,7 @@ test -f /root/.my.cnf || exit 1
rootpw=$(grep password /root/.my.cnf | sed -e 's/^[^=]*= *\(.*\) */\1/')
-/usr/bin/mysqladmin -uroot --password="${rootpw}" status > /dev/null && echo "Nothing to do as the password already works" && exit 0
+/usr/bin/mysqladmin --defaults-file=/root/.my.cnf status > /dev/null && echo "Nothing to do as the password already works" && exit 0
/sbin/service mysqld stop