mirror of
https://github.com/aljazceru/addons.git
synced 2026-01-23 23:05:53 +01:00
* Add service which locks database tables Add an additional service which helds a lock on all database tables. This allows to safely snapshot the database files. * Lock database during snapshot operation Fixes: #1353 * Update config.json * Update CHANGELOG.md Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
42 lines
1.2 KiB
JSON
42 lines
1.2 KiB
JSON
{
|
|
"name": "MariaDB",
|
|
"version": "2.4.0",
|
|
"slug": "mariadb",
|
|
"description": "A SQL database server",
|
|
"url": "https://github.com/home-assistant/hassio-addons/tree/master/mariadb",
|
|
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
|
|
"startup": "system",
|
|
"init": false,
|
|
"timeout": 20,
|
|
"snapshot_pre": "/bin/s6-svc -wU -u /run/s6/services/mariadb-lock/",
|
|
"snapshot_post": "/bin/s6-svc -wd -d /run/s6/services/mariadb-lock/",
|
|
"services": ["mysql:provide"],
|
|
"ports": {
|
|
"3306/tcp": null
|
|
},
|
|
"options": {
|
|
"databases": ["homeassistant"],
|
|
"logins": [{ "username": "homeassistant", "password": null }],
|
|
"rights": [
|
|
{
|
|
"username": "homeassistant",
|
|
"database": "homeassistant"
|
|
}
|
|
]
|
|
},
|
|
"schema": {
|
|
"databases": ["str"],
|
|
"logins": [{ "username": "str", "password": "password" }],
|
|
"rights": [
|
|
{
|
|
"username": "str",
|
|
"database": "str",
|
|
"privileges": [
|
|
"list(ALTER|CREATE|CREATE ROUTINE|CREATE TEMPORARY TABLES|CREATE VIEW|DELETE|DELETE HISTORY|DROP|EVENT|GRANT OPTION|INDEX|INSERT|LOCK TABLES|SELECT|SHOW VIEW|TRIGGER|UPDATE)?"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"image": "homeassistant/{arch}-addon-mariadb"
|
|
}
|