Commit 255f3d30 authored by Alan Garcia's avatar Alan Garcia

Cron pour l'optimisation hebdomadaire de la bdd alternc (à merger par Xals)

parent ae04e40a
......@@ -460,6 +460,7 @@ po/fr/LC_MESSAGES/alternc-admintools.po -text
/quota_init -text
src/Makefile -text
src/alternc-check -text
src/alternc-dboptimize -text
src/alternc-passwd -text
src/alternc_reload -text
src/du.pl -text
......
......@@ -15,3 +15,5 @@
# You may put this computing every week only or on your filer on busy services.
0 2 * * * www-data /usr/lib/alternc/spoolsize.php
# Once a week at 7am, optimise the AlternC database
0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize
......@@ -26,7 +26,7 @@
# ----------------------------------------------------------------------
#
SETUID=mail_add mail_del quota_edit quota_get mem_add mem_del
SCRIPTS=quota_edit.sh quota_get.sh sqlbackup.sh rawstat.daily quota_init quota_delete update_domains.sh slave_dns sendmail spoolsize.php fixperms.sh
SCRIPTS=quota_edit.sh quota_get.sh sqlbackup.sh rawstat.daily quota_init quota_delete update_domains.sh slave_dns sendmail spoolsize.php fixperms.sh alternc-check alternc-dboptimize
LIBS=functions.sh functions_hosting.sh functions_dns.sh
BIN=$(DESTDIR)/usr/lib/alternc/
......
#!/bin/bash
# Optimize alternc databases
/usr/bin/mysqlcheck --defaults-file=/etc/alternc/my.cnf --quick --force --optimize --auto-repair --databases $(cat /etc/alternc/my.cnf |grep ^database|cut -d '"' -f 2) > /dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment