Adding Tunning Options
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
todo=$(CreoleGet dbCreateFixAdmin 'non')
|
||||
autoRepair=$(CreoleGet dbAutoOptimizeAndRepare 'non')
|
||||
|
||||
if [[ ${todo} != 'non' ]]
|
||||
then
|
||||
@ -60,5 +61,11 @@ then
|
||||
chmod 600 ${readerfile}
|
||||
rm -rf ${sqlFile}
|
||||
fi
|
||||
|
||||
if [[ ${autoRepair} == "oui" ]]
|
||||
then
|
||||
mysqlcheck -u root --auto-repair --check --optimize --all-databases
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
|
Reference in New Issue
Block a user