Changeset 3810


Ignore:
Timestamp:
Mar 3, 2017, 12:02:48 PM (2 years ago)
Author:
Juanma
Message:

Fixed update_passwd in lliurex-sgdb

Location:
lliurex-sgdb/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-sgdb/trunk/fuentes/debian/changelog

    r3805 r3810  
     1lliurex-sgbd (0.74) xenial; urgency=medium
     2
     3  * Fixed update_passwd in lliurex-sgdb
     4
     5 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Fri, 03 Mar 2017 12:01:27 +0100
     6
    17lliurex-sgbd (0.73) xenial; urgency=medium
    28
  • lliurex-sgdb/trunk/fuentes/install/usr/sbin/lliurex-sgbd

    r1702 r3810  
    8383mysql_version_upper(){
    8484    local ret=1;
    85     ver=$(mysqld --version 2>&1|egrep -o '[0-9]+\.[0-9]+\.[0-9]+')
     85    ver=$(mysqld --version 2>&1|egrep -o '\ [0-9]+\.[0-9]+\.[0-9]+')
    8686    is_maria=$(mysqld --version 2>&1|grep -io 'mariadb'|wc -l)
    8787    if [ $is_maria -gt 0 ]; then
     
    113113       
    114114        if mysql_version_upper; then
    115             sqlQuery="UPDATE mysql.user SET authentication_string=PASSWORD('$passwd'),plugin='mysql_native_password',password_expired='N' WHERE User='root'; "
     115            #sqlQuery="UPDATE mysql.user SET authentication_string=PASSWORD('$passwd'),plugin='mysql_native_password',password_expired='N' WHERE User='root'; "
     116            sqlQuery="UPDATE mysql.user SET authentication_string=PASSWORD('$DB_USER_PASS'),plugin='mysql_native_password',password_expired='N' WHERE User='$DB_USER'; "
    116117        else
    117118            sqlQuery="UPDATE mysql.user SET Password=PASSWORD('$passwd') WHERE User='root'; "
Note: See TracChangeset for help on using the changeset viewer.