https://bugs.contribs.org/show_bug.cgi?id=10357

--- Comment #3 from John Crisp <jcr...@safeandsoundit.co.uk> ---
OK,

I'd propose the following:

A few extra keys for 

mysql55=enabled/disabled
mysql57=enabled/disabled
mysqlmaria=enabled/disabled

Template the conf files allowing for enabled/disabled:

myserver.conf
myserver55.conf
myserver57.conf
myservermaria.conf

Modify /sbin/e-smith/runmysqlbackup

#!/bin/sh

FILES=/etc/automysqlbackup/*.conf
for f in $FILES
do
/usr/local/bin/automysqlbackup $f
done

chown root:root /root/backup/db* -R
find /root/backup/db* -type f -exec chmod 400 {} \;
find /root/backup/db* -type d -exec chmod 700 {} \;

Then there is no need to modify the cron script as the runmysqlbackup script
will process all conf files.

Things to think about.
Do we check for installed versions if we can enable/disable conf files - a note
in the wiki may suffice

The rpm automatically setups a 'backup' user in the DB with a password in the
config. Do we add a note somewhere to say 'Don't forget to add a backup user'?
If not we'd have to check for the existence of a particular version and then
add the user. That doesn't help if a DB type is subsequently added.

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to