https://bugs.contribs.org/show_bug.cgi?id=10143
John Crisp <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from John Crisp <[email protected]> ---
If I understand this correctly.
Here's the old script:
cat /etc/e-smith/events/actions/mysql-load-tables
#!/bin/sh
status=$(/sbin/e-smith/config getprop mysqld status)
if [ "$status" = "disabled" ]
then
echo "mysqld is disabled - no tables restored" >&2
exit 0
fi
/bin/rm -f /home/e-smith/db/mysql/information_schema.dump
if [ ! -f /var/lib/mysql/mysql/user.frm ]
then
for db in $(ls /home/e-smith/db/mysql/*.dump 2> /dev/null | grep -v
'/mysql.dump')
do
mv $db /etc/e-smith/sql/init/01_$(basename $db .dump).sql
done
fi
We should modify it a little like
cat /etc/e-smith/events/actions/mysql-load-tables
#!/bin/sh
status=$(/sbin/e-smith/config getprop mysqld status)
status55=$(/sbin/e-smith/config getprop mysqld status)
status57=$(/sbin/e-smith/config getprop mysqld status)
if [ "$status" = "disabled" ]
then
echo "mysqld is disabled - no tables restored" >&2
exit 0
fi
if [ "$status55" = "disabled" ]
then
echo "mysqld55 is disabled - no tables restored" >&2
exit 0
fi
(same for 57/maria)
if [ "$status55" = "enabled" ]
then
/bin/rm -f /home/e-smith/db/mysql/information_schema.dump
if [ ! -f /var/lib/mysql/mysql/user.frm ]
then
for db in $(ls /home/e-smith/db/mysql/*.dump 2> /dev/null | grep -v
'/mysql.dump')
do
mv $db /etc/e-smith/sql/init/01_$(basename $db .dump).sql
done
fi
fi
(same for 57/maria)
If that's about right I can do a patch?
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/