Compare commits

...

50 Commits

Author SHA1 Message Date
Laurent Gourvenec 012bd5e415 Add script to schedule an optimize on hydra's tables daily 2023-05-03 17:52:24 +02:00
vincent cf632ec6e6 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-06-07 15:08:26 +02:00
Emmanuel Garette aec567045d extract backup with mariabackup 2019-06-07 14:49:03 +02:00
vincent 558482e860 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-06-06 14:41:28 +02:00
vincent 51811c96db Merge branch 'develop' into dist/eole/2.7.0/develop 2019-05-20 10:44:58 +02:00
vincent b9fb5ff6ad Merge branch 'develop' into dist/eole/2.7.0/develop 2019-05-16 10:29:55 +02:00
vincent b609ee9761 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-04-18 15:01:21 +02:00
vincent 3f214856a4 XMerge branch 'dist/eole/2.7.0/develop' of ssh://forge.cadoles.com:4242/Cadoles/eole-mariadb into dist/eole/2.7.0/develop 2019-04-18 14:56:37 +02:00
vincent cbc84bd841 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-04-18 14:53:36 +02:00
Teddy Cornaut 0c455115c8 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-03-13 15:20:06 +01:00
vincent a0684dab2f Merge branch 'dist/eole/2.7.0/develop' of ssh://forge.cadoles.com:4242/Cadoles/eole-mariadb into dist/eole/2.7.0/develop 2019-03-11 09:47:34 +01:00
vincent 997e33daf2 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-03-11 09:45:26 +01:00
vincent 79785b4b60 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-03-04 12:08:27 +01:00
vincent c3040e3762 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-03-04 10:29:23 +01:00
vincent 2ba4b56d51 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-03-01 15:36:10 +01:00
vincent 065308a921 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-02-19 17:26:31 +01:00
vincent 21b93a3462 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-02-19 17:13:59 +01:00
vincent c540b65e08 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-02-19 10:03:53 +01:00
vincent 5e9eae5c13 Merge branch 'develop' into dist/eole/2.7.0/develop 2019-02-15 11:07:15 +01:00
Philippe Caseiro b4cccc5e12 Merge branch 'master' into dist/eole/2.6.2/master 2018-09-03 14:02:59 +02:00
Philippe Caseiro 68eaa03db2 Merge branch 'master' into dist/eole/2.6.2/master 2018-06-21 15:59:22 +02:00
Philippe Caseiro 5c7bbbde79 Merge branch 'master' into dist/eole/2.6.2/master 2018-06-21 15:28:02 +02:00
Philippe Caseiro ed910e72ee Merge branch 'master' into dist/eole/2.6.2/master 2018-06-21 13:46:21 +02:00
Philippe Caseiro 142d73afad Merge branch 'master' into dist/eole/2.6.2/master 2018-06-21 11:04:20 +02:00
Philippe Caseiro 08d7ed927c Merge branch 'master' into dist/eole/2.6.2/master 2018-06-21 10:48:13 +02:00
Philippe Caseiro f375a121ae Merge branch 'master' into dist/eole/2.6.2/master 2018-05-28 16:14:08 +02:00
Philippe Caseiro 4709c28223 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-22 16:39:58 +02:00
Philippe Caseiro 98bfcc1416 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-17 10:17:21 +02:00
Philippe Caseiro ae696769ed Merge branch 'master' into dist/eole/2.6.2/master 2018-05-17 10:14:19 +02:00
Philippe Caseiro 534e04671a Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 18:32:49 +02:00
Philippe Caseiro 61383bb17a Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 17:07:35 +02:00
Philippe Caseiro 5aa0262331 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 17:01:35 +02:00
Philippe Caseiro b550833a25 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 15:54:59 +02:00
Philippe Caseiro 517625cf66 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 15:41:23 +02:00
Philippe Caseiro 7a9855f234 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 14:26:02 +02:00
Philippe Caseiro 764ae6320c Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 13:33:15 +02:00
Philippe Caseiro d9425736c6 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 12:27:57 +02:00
Philippe Caseiro cbb1319e48 Merge branch 'master' into dist/eole/2.6.2/master 2018-05-09 12:22:39 +02:00
Philippe Caseiro be88b407b4 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 17:39:50 +02:00
Philippe Caseiro c87a989b22 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 17:20:23 +02:00
Philippe Caseiro d1e813aaa8 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 17:14:18 +02:00
Philippe Caseiro eb6854d313 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 17:11:04 +02:00
Philippe Caseiro c723edd095 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 16:34:03 +02:00
Philippe Caseiro 37e5cbb3b2 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 16:13:06 +02:00
Philippe Caseiro 4d00207271 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 16:02:01 +02:00
Philippe Caseiro 5e98dafab2 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 14:10:43 +02:00
Philippe Caseiro 1fb5fd21b8 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 12:14:23 +02:00
Philippe Caseiro 8cf9168763 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 12:07:52 +02:00
Philippe Caseiro 0dfdb70080 Merge branch 'master' into dist/eole/2.6.2/master 2018-04-12 10:51:18 +02:00
Philippe Caseiro 6d4b75c679 Adding Debian packaging directory 2018-04-12 09:30:13 +02:00
9 changed files with 141 additions and 0 deletions

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

18
debian/control vendored Normal file
View File

@ -0,0 +1,18 @@
Source: eole-mariadb
Section: web
Priority: optional
Maintainer: Cadoles <eole@ac-dijon.fr>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.3
Homepage: https://forge.cadoles.com/Cadoles/eole-mariadb
Vcs-Git: https://forge.cadoles.com/Cadoles/eole-mariadb.git
Vcs-Browser: https://forge.cadoles.com/Cadoles/eole-mariadb
Package: eole-mariadb
Architecture: all
Depends: ${misc:Depends}, mariadb-server, mariadb-backup
Conflicts: eole-mysql
Provides: eole-mysql
Description: Dictionnaires et templates pour la configuration d'un serveur MariaDB, testée uniquement avec eolebase
.
Pour toute information complémentaire, veuillez vous rendre sur la forge Cadoles.

44
debian/copyright vendored Normal file
View File

@ -0,0 +1,44 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: {PROJECT}
Source: {URL}
Files: *
Copyright: YEAR {UPSTREAM} {AUTHOR} <{MAIL}>
License: {UPSTREAM LICENSE}
Files: debian/*
Copyright: 2012 Équipe EOLE <eole@ac-dijon.fr>
License: CeCILL-2
License: {UPSTREAM LICENSE}
{TEXT OF THE LICENSE}
License: CeCILL-2
This software is governed by the CeCILL-2 license under French law and
abiding by the rules of distribution of free software. You can use,
modify and or redistribute the software under the terms of the CeCILL-2
license as circulated by CEA, CNRS and INRIA at the following URL
"http://www.cecill.info";.
.
As a counterpart to the access to the source code and rights to copy,
modify and redistribute granted by the license, users are provided only
with a limited warranty and the software's author, the holder of the
economic rights, and the successive licensors have only limited
liability.
.
In this respect, the user's attention is drawn to the risks associated
with loading, using, modifying and/or developing or reproducing the
software by the user in light of its specific status of free software,
that may mean that it is complicated to manipulate, and that also
therefore means that it is reserved for developers and experienced
professionals having in-depth computer knowledge. Users are therefore
encouraged to load and test the software's suitability as regards their
requirements in conditions enabling the security of their systems and/or
data to be ensured and, more generally, to use and operate it in the
same conditions as regards security.
.
The fact that you are presently reading this means that you have had
knowledge of the CeCILL-2 license and that you accept its terms.
.
On Eole systems, the complete text of the CeCILL-2 License can be found
in '/usr/share/common-licenses/CeCILL-2-en'.

3
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,3 @@
# Set per distribution debian tag
[DEFAULT]
debian-tag = debian/eole/%(version)s

8
debian/rules vendored Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@

BIN
debian/source/.format.un~ vendored Normal file

Binary file not shown.

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<variables>
<family name="optimize_hydra" description="Optimize sur les tables d'Hydra">
<variable name="description" type="string" hidden="True"><value>Optimize sur les tables de la base Hydra</value></variable>
<variable name="day" type="schedule" description="Périodicité d'exécution"><value>daily</value></variable>
<variable name="mode" type="schedulemod" hidden="True"><value>post</value></variable>
</family>
</variables>
<constraints>
<!-- Désactive les optimize si on est pas sur la machine qui fait les backups -->
<fill name='calc_multi_condition' target='schedule.optimize_hydra.day'>
<param>non</param>
<param type='eole' name='condition_1'>dbEnableBackup</param>
<param name='match'>none</param>
<param name='mismatch'>daily</param>
</fill>
</constraints>
</creole>

View File

@ -0,0 +1,46 @@
#!/bin/bash
DESC="Optimize sur les tables d'Hydra"
. /usr/share/eole/schedule/config.sh
echo "Begin date: $(date)"
day=$(date '+%u') # 1 == Monday
case $day in
1)
tables='hydra_oauth2_access'
;;
2)
tables='hydra_oauth2_oidc'
;;
3)
tables='hydra_oauth2_code'
;;
4)
tables='hydra_oauth2_authentication_request'
;;
5)
tables='hydra_oauth2_consent_request'
;;
6)
tables='hydra_oauth2_logout_request, hydra_oauth2_consent_request_handled'
;;
7)
tables='hydra_oauth2_authentication_session, hydra_oauth2_authentication_request_handled, hydra_oauth2_pkce'
;;
*)
echo 'Unexpected error. Day: $day'
exit 1
esac
mysql --defaults-file=/etc/mysql/debian.cnf hydra <<EOF
OPTIMIZE TABLE $tables;
EOF
exit_val=$?
echo "End date: $(date)"
exit $exit_val