initial commit of file from CVS for smeserver-mysql on Sat Mar 23 16:06:28 AEDT 2024
This commit is contained in:
18
additional/rootscl/sbin/e-smith/systemd/mariadb_VER_-post
Normal file
18
additional/rootscl/sbin/e-smith/systemd/mariadb_VER_-post
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in $(seq 1 20);
|
||||
do
|
||||
if [ -S !!!SOCKET!!! ]
|
||||
then
|
||||
/usr/bin/mysql!!!VER!!! < /var/lib/mysql/set.password2
|
||||
echo "root password set"
|
||||
exit 0
|
||||
fi
|
||||
echo waiting for rh-mariadb105-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