/[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.8 by jpp, Wed Mar 16 07:29:20 2022 UTC Revision 1.11 by jcrisp, Tue Jun 7 12:30:17 2022 UTC
# Line 27  diff -Nur --no-dereference smeserver-mys Line 27  diff -Nur --no-dereference smeserver-mys
27  +    # set root password , 104 and above have a different syntax and allow root passwordless access  +    # set root password , 104 and above have a different syntax and allow root passwordless access
28  +    if [ !!!VER!!! -le  103 ]  +    if [ !!!VER!!! -le  103 ]
29  +    then  +    then
30  +      /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password  +      /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password2
31  +    fi  +    fi
32       # upgrade does not need to be run on a fresh datadir       # upgrade does not need to be run on a fresh datadir
33       #echo "5.7.24" >"$datadir/mysql_upgrade_info"       #echo "5.7.24" >"$datadir/mysql_upgrade_info"
# Line 42  diff -Nur --no-dereference smeserver-mys Line 42  diff -Nur --no-dereference smeserver-mys
42  +   # else we set root password anyway ! just to be sure ! 104 and above have a different syntax and allow root passwordless access  +   # else we set root password anyway ! just to be sure ! 104 and above have a different syntax and allow root passwordless access
43  +   if [ !!!VER!!! -le  103 ]  +   if [ !!!VER!!! -le  103 ]
44  +   then  +   then
45  +     /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password  +     /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password2
46  +   fi  +   fi
47  +   exit 0  +   exit 0
48   fi   fi
# Line 163  diff -Nur smeserver-mysql-2.7.0.old/root Line 163  diff -Nur smeserver-mysql-2.7.0.old/root
163  -    /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqldump --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mariadb!!!VER!!!/"$db".dump || onfailure $db  -    /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqldump --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mariadb!!!VER!!!/"$db".dump || onfailure $db
164  +    /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqldump --socket=!!!SOCKET!!! --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mariadb!!!VER!!!/"$db".dump || onfailure $db  +    /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqldump --socket=!!!SOCKET!!! --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mariadb!!!VER!!!/"$db".dump || onfailure $db
165   done   done
166    diff -Nur --no-dereference smeserver-mysql-2.7.0.old/rootscl/usr/lib/systemd/system/mariadb_VER_-mysql.init.service smeserver-mysql-2.7.0/rootscl/usr/lib/systemd/system/mariadb_VER_-mysql.init.service
167    --- smeserver-mysql-2.7.0.old/rootscl/usr/lib/systemd/system/mariadb_VER_-mysql.init.service    2022-03-16 16:01:25.209000000 -0400
168    +++ smeserver-mysql-2.7.0/rootscl/usr/lib/systemd/system/mariadb_VER_-mysql.init.service        2022-03-11 15:26:08.000000000 -0500
169    @@ -12,8 +12,8 @@
170     KillMode=process
171     GuessMainPID=no
172     RemainAfterExit=yes
173    +ExecStart=/sbin/e-smith/systemd/mariadb!!!VER!!!-mysql.init start
174    +ExecStop=/sbin/e-smith/systemd/mariadb!!!VER!!!-mysql.init stop
175    -ExecStart=/sbin/e-smith/systemd/mariadb!!!VER!!!-mariadb.init start
176    -ExecStop=/sbin/e-smith/systemd/mariadb!!!VER!!!-mariadb.init stop
177    
178     [Install]
179     WantedBy=sme-server.target


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