/[smeserver]/rpms/smeserver-mysql/sme10/smeserver-mysql-2.7.0-bz11899-sclo.patch
ViewVC logotype

Diff of /rpms/smeserver-mysql/sme10/smeserver-mysql-2.7.0-bz11899-sclo.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.6 by jpp, Mon Mar 14 05:05:33 2022 UTC Revision 1.7 by jpp, Mon Mar 14 06:40:49 2022 UTC
# Line 112  diff -Nur --no-dereference smeserver-mys Line 112  diff -Nur --no-dereference smeserver-mys
112  +PERMS=0400  +PERMS=0400
113  +UID="root"  +UID="root"
114  +GID="root"  +GID="root"
115  diff -Nur --no-dereference smeserver-mysql-2.7.0.old/rootscl/sbin/e-smith/systemd/mariadb_VER_-initialize smeserver-mysql-2.7.0/rootscl/sbin/e-smith/systemd/mariadb_VER_-initialize  diff -Nur --no-dereference smeserver-mysql-2.7.0.old/rootscl/sbin/e-smith/systemd/mariadb_VER_-post smeserver-mysql-2.7.0/rootscl/sbin/e-smith/systemd/mariadb_VER_-post
116  --- smeserver-mysql-2.7.0.old/rootscl/sbin/e-smith/systemd/mariadb_VER_-initialize      2022-03-14 00:10:47.160000000 -0400  --- smeserver-mysql-2.7.0.old/rootscl/sbin/e-smith/systemd/mariadb_VER_-post    1969-12-31 19:00:00.000000000 -0500
117  +++ smeserver-mysql-2.7.0/rootscl/sbin/e-smith/systemd/mariadb_VER_-initialize  2022-03-14 01:01:42.194000000 -0400  +++ smeserver-mysql-2.7.0/rootscl/sbin/e-smith/systemd/mariadb_VER_-post        2022-03-14 02:28:09.537000000 -0400
118  @@ -38,6 +38,8 @@  @@ -0,0 +1,18 @@
119       if [ !!!VER!!! -le  103 ]  +#!/bin/bash
120       then  +
121         /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password  +for i in $(seq 1 20);
122  +    else  +do
123  +     /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password2  +  if [ -S !!!SOCKET!!! ]
124       fi  +  then
125       # upgrade does not need to be run on a fresh datadir  +      /usr/bin/mysql!!!VER!!! < /var/lib/mysql/set.password2
126       #echo "5.7.24" >"$datadir/mysql_upgrade_info"  +      echo  "root password set"
127  @@ -53,6 +55,9 @@  +      exit 0
128      if [ !!!VER!!! -le  103 ]  +  fi
129      then  +  echo waiting for rh-mariadb105-mariadb to start to set root password
130        /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password  +  sleep 1
131  +   else  +done
132  +     /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password2  +echo  failed to set root password
133      fi  +# we fail silently, mariadb will still work, only issue is for phpmyadmin
134    +# and non socket access
135    +exit 0
136  +  +
     exit 0  
  fi  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed