* Fri Apr 05 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme
- tidy spec and sources for mariadb10.5 support [SME: 12524] - try to make compatible with higher version from mariadb repo [SME: 11856] - fix logrotate duplicate entry [SME: 12554] * Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-3.sme - Set license file to GPL2.0 [SME: 12577]
This commit is contained in:
18
root/sbin/e-smith/systemd/mariadb-post
Normal file
18
root/sbin/e-smith/systemd/mariadb-post
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in $(seq 1 20);
|
||||
do
|
||||
if [ -S /var/lib/mysql/mysql.sock ]
|
||||
then
|
||||
/usr/bin/mysql < /var/lib/mysql.private/set.password
|
||||
echo "root password set"
|
||||
exit 0
|
||||
fi
|
||||
echo waiting for mariadb to start to set root password
|
||||
sleep 1
|
||||
done
|
||||
echo failed to set root password
|
||||
# we fail silently, mariadb will still work, only issue is for phpmyadmin
|
||||
# and non socket access
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user