Commit graph

34 commits

Author SHA1 Message Date
Alexandre Aubin
93cc413f4a helpers: lint/reformat with shfmt -bn -i 4 -w $FILE 2021-10-06 16:01:53 +02:00
75539472ea helper doc fixes : mysql 2021-03-03 11:17:59 +01:00
Alexandre Aubin
d763247df4
No need for mysql root password (#912)
* Get rid of /etc/yunohost/mysql

* Get rid of restore hook for mysql password

* Tab -> spaces

* declare->local lost while merging conflicts etc

* Gotta keep that var
2021-03-01 19:11:41 +01:00
Kay0u
8d5422d13f [fix] Fix getopts and helpers 2020-07-27 19:20:36 +02:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +02:00
Maniack Crudelis
e64eb3478e Unfold AND OR 2020-04-20 15:24:07 +02:00
Maniack Crudelis
b0398ae6dc Use long arguments instead of short ones 2020-04-20 15:20:31 +02:00
Maniack Crudelis
57061b8e1d Unfold if-then when more than one line 2020-04-19 20:31:06 +02:00
Maniack Crudelis
80964a1312 Standardize tabulations 2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17 Replace declare -Ar by local A for args_array 2020-04-19 19:10:39 +02:00
Alexandre Aubin
97e5d3b992 Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2019-11-28 00:10:40 +01:00
Alexandre Aubin
1810808acd Fix wrong usage of ynh_mysql_user_exists 2019-06-28 16:34:15 +02:00
Alexandre Aubin
7523ef3aed Remove unecessary log messages 2019-05-15 20:00:37 +02:00
Alexandre Aubin
3c22feb0cb Move string normalization helpers to 'string' 2019-04-25 20:19:04 +02:00
Maniack Crudelis
30c776702f Use printers in helpers 2019-04-13 18:21:15 +02:00
Alexandre Aubin
a9761d356b Update script to automatically generate helper documentation 2019-04-08 18:59:04 +02:00
Maniack Crudelis
873bf4ae37 Add min version for all helpers 2019-02-25 18:44:21 +01:00
Maniack Crudelis
bf443f2ec0 db_pwd shouldn't be local 2019-01-04 19:30:07 +01:00
Maniack Crudelis
1a4e661e4e Keep db_pwd instead of db_password 2019-01-04 18:43:56 +01:00
Maniack Crudelis
7de184a520 Use getopts helpers in mysql, again 2019-01-04 17:21:17 +01:00
Maniack Crudelis
976f160afb Fix getopts and its legacy mode 2019-01-04 17:11:49 +01:00
Maniack Crudelis
8c600e1e0b
Use getopts helpers in mysql 2018-12-29 18:51:12 +01:00
Maniack Crudelis
35b483a7c0
Use getopts for sql's helpers 2018-10-17 00:05:42 +02:00
Alexandre Aubin
af22474a50 Add some [internal] flags in the comment to hide a few helpers from autodoc 2018-03-10 19:01:37 +01:00
Alexandre Aubin
935b972d6e Misc fixes in the helpers to clean the autodoc 2018-03-09 17:55:07 +01:00
Alexandre Aubin
1056977dc6
Microdecision: those weren't space, wtf 2018-01-27 20:03:42 +01:00
Maniack Crudelis
3a3ec7d9b5 [fix/enh] Use local variables 2017-12-17 20:26:52 +01:00
Laurent Peuch
402517d841 Merge branch 'unstable' into enh_mysql_single-transaction 2017-10-03 22:19:32 +02:00
Maniack Crudelis
d42cc00a87 [enh] Remove date from sql dump 2017-09-19 01:34:23 +02:00
Jimmy Monin
8a559f2ae1 Make MySQL dumps with a single transaction to ensure backup consistency 2017-09-14 22:12:01 +02:00
Maniack Crudelis
edcabddb63 [enh] Do not change the db_pwd (#319)
* [enh] Do not change the db_pwd
For restore script, do not change the password.
Keep the primary password and recreate a new database with it.
* A small comment ;)
Thanks, opi, sometimes I forget that's not so obvious.
And I don't want to someone has to search through internet to understand a helper.
2017-06-12 17:03:40 +02:00
Maniack Crudelis
dfee06404e Nouveaux helpers ynh_mysql_generate_db et ynh_mysql_remove_db (#236)
* Nouveaux helpers ynh_mysql_generate_db et ynh_mysql_remove_db
Helpers pour créer une base de donnée, son utilisateur et un mot de passe.
Et son pendant pour la supprimer.
* Separate corrections of names
* Grammar nazism
* Update according to comments
* Renaming ynh_make_valid_dbid to ynh_sanitize_dbid
* Fixing remaining make_valid_dbid
* Implement remaining comments
* Add a check that the user exist before deleting it
2017-05-08 19:05:49 +02:00
opi
21376eb956 [fix] Documentation typo 2016-07-30 12:19:21 +02:00
Julien Malik
5b7e16384e [enh] move /usr/share/yunohost/apps/helpers to /usr/share/yunohost/helpers since it became of more general use 2016-03-12 00:12:59 +01:00
Renamed from data/apps/helpers.d/mysql (Browse further)