Commit graph

432 commits

Author SHA1 Message Date
Alexandre Aubin
844b35589e Add ynh_render_template helper to render templates with jinja2 2018-05-10 01:14:53 +02:00
Josue-T
0f8cef9cf8
Helper - improve ynh_add_nginx_config
Add 2 new features :
- Permit to replace some others variables in the template
- Manage automatically the redirection (alias_transversal issue fix)
2018-05-10 00:05:46 +02:00
JimboJoe
a3c6cc2ca8
Typo fix 2018-05-08 18:21:52 +02:00
Jimmy Monin
24449a5004 Update ynh_system_user_create comment with explicit examples 2018-05-08 09:21:41 +02:00
Josue-T
51fdef0c53 Helper - Add no_extract_option 2018-05-05 10:41:11 +02:00
Jimmy Monin
5f23751479 Update ynh_system_user_create helper to allow creating users with login shell 2018-04-29 17:43:13 +02:00
Maniack Crudelis
c20fa217a7
fix bad line 2018-04-24 00:02:07 +02:00
Josue-T
ab2b7db0cf Trigger error if app dependency install fails (Redmine 1006) + allow for 'or' in dependencies (#381)
* Solve issue https://dev.yunohost.org/issues/1006
I purpose this change to improve the helper 'ynh_install_app_dependencies'.
Before this change if the dependences are not installable the install didn't fail. By these change the helper generate an error and the install stop.

* Get the error if apt fail
* Remove old change
* Add dependence choice
2018-04-13 14:31:36 +02:00
Maniack Crudelis
6c7fb0cef2 Fix n usage (#446)
* Fix n usage
* Fix ynh_remove_nodejs as well
2018-04-13 14:28:58 +02:00
Maniack Crudelis
91d0965569 Add nodejs helpers (#441)
* Add nodejs helpers
* Typo fix
* Add explanation for load_n_path
* Remove useless line
* Remove another old useless line
* Move to a dedicated file
* Move to a dedicated file
* Fix check n already installed
2018-03-30 23:05:04 +02:00
Josue-T
bdf923aafc Solve issue with ynh_restore_file (#384)
* Solve issue with ynh_restore_file

While we use the `ynh_restore_file` if the destination already exist the `mv` fonction don't work correctly. By this commit the old directory is renamed.

* Move to /home/yunohost.conf file if already exist in restoration

* Remove if the file is bigger than 500Mo

* Use a local variable

* Fix DEST_PATH

* Fix comment and typo

* More precise comment regarding the behavior if DEST_PATH exists
2018-03-15 18:58:11 +01:00
Maniack Crudelis
65dab2022c
Merge branch 'unstable' into backup_core_only 2018-03-15 17:27:40 +01: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
Maniack Crudelis
8652435d8a
[fix] Remove warning from equivs 2018-03-08 18:53:21 +01:00
Maniack Crudelis
79c7ba7615
Indentation fix... 2018-02-22 11:52:55 +01:00
Maniack Crudelis
b3c600ac1d
Merge branch 'unstable' into NO_BACKUP_UPGRADE 2018-02-22 11:51:27 +01:00
Laurent Peuch
a343e39dda
Merge pull request #425 from Josue-T/systemd_config
Add service name as arg (optionnal) in helper systemd
2018-02-09 00:40:24 +01:00
Laurent Peuch
62b3674f4c
Merge pull request #432 from YunoHost/backup_upgrade_verbose
[enh] --verbose for backup during upgrade
2018-02-08 03:17:41 +01:00
Laurent Peuch
92a3caa8b2
Merge pull request #373 from YunoHost/enh-phpfpm-helper-php7-stretch
Update php-fpm helpers to handle stretch/php7 and a smooth migration
2018-02-08 00:08:40 +01:00
Maniack Crudelis
8e92bb8328
[enh] --verbose for backup during upgrade 2018-02-04 19:26:49 +01:00
Maniack Crudelis
ebdc67e02f
[enh] Allow to disable the backup during the upgrade 2018-02-04 19:21:24 +01:00
Alexandre Aubin
e15ccdf0b7
Microdecison: more weird spaces 2018-01-27 20:06:16 +01:00
Alexandre Aubin
1056977dc6
Microdecision: those weren't space, wtf 2018-01-27 20:03:42 +01:00
Alexandre Aubin
a975e5e684
Improve comment / helper description 2018-01-26 22:21:14 +01:00
Josué Tille
9c4ddcca39 Add service name as arg (optionnal) 2018-01-26 21:17:18 +01:00
Maniack Crudelis
8a51b46d47
[Fix] Fix ynh_restore_upgradebackup 2018-01-22 19:06:37 +01:00
Laurent Peuch
e9c87da028
[fix] previous patch mistakely remove variable name 2018-01-15 22:59:20 +01:00
JimboJoe
3fbcd1f110
Merge branch 'unstable' into default_version 2018-01-11 14:19:47 +01:00
JimboJoe
a62edfd76e
Merge branch 'unstable' into helpers_local_variables 2018-01-10 08:22:33 +01:00
Maniack Crudelis
5289889174
Be nice with set -eu 2018-01-10 00:44:25 +01:00
Maniack Crudelis
3dd6317ae6
Add info 2017-12-22 19:33:47 +01:00
Jimmy Monin
810eaec8c9 Don't backup big data items when BACKUP_CORE_ONLY is set 2017-12-22 19:27:02 +01:00
Maniack Crudelis
421994a3ef
[enh] Tranfert backup_core_only to BACKUP_CORE_ONLY 2017-12-22 19:01:09 +01:00
Maniack Crudelis
542528ab05 Fix broken ynh_replace_string (#394)
* Fix broken ynh_replace_string
* Replace name for ynh_replace_special_string
2017-12-21 19:19:33 +01:00
Maniack Crudelis
3a3ec7d9b5 [fix/enh] Use local variables 2017-12-17 20:26:52 +01:00
Maniack Crudelis
42f9c8fc18
[fix] Who said I didn't check my code !? 2017-12-11 17:25:28 +01:00
Maniack Crudelis
2685c42ac6
[fix] Only for JimboJoe ;) 2017-12-11 17:23:26 +01:00
Maniack Crudelis
4276aebfa3
[enh] Default version number for ynh_install_app_dependencies 2017-12-10 23:38:09 +01:00
Josue-T
c13c75f3e7
Solve ynh_use_logrotate
Actually when we use the command `ynh_use_logrotate /var/log/abcd/` the result in the logrotate conf file is `/opt/yunohost/abcd/logs//.log` witch is not what we want.
2017-12-08 23:04:45 +01:00
Maniack Crudelis
4f62eb5320
Fix upgrade fake package 2017-12-02 16:44:47 +01:00
Maniack Crudelis
17ba10ad92 [fix] Fix helper for old apps without backup script (#388) 2017-11-28 19:58:51 +01:00
Alexandre Aubin
7c28ec1c1b [enh] Adding an app helper to display infos 2017-10-29 23:37:51 +01:00
Alexandre Aubin
dfa7ca28bf [microdecision] Typo 2017-10-16 21:31:59 +02:00
Maniack Crudelis
0086c8c16a [fix] match_string: unbound variable (#379)
* [fix] match_string: unbound variable
* Define local variables at beginning of function
2017-10-07 15:06:00 +02:00
Laurent Peuch
ff4b08ed65 Merge pull request #354 from YunoHost/update_ynh_replace_string
[enh] Escape some special character in ynh_replace_string
2017-10-06 15:03:40 +02:00
Laurent Peuch
402517d841 Merge branch 'unstable' into enh_mysql_single-transaction 2017-10-03 22:19:32 +02:00
Maniack Crudelis
e3a4b307f7 Fix double backslash in case of delimiter used 2017-10-03 22:11:24 +02:00
Maniack Crudelis
220c447074 [enh] Handle root path in nginx conf (#361)
Avoid to put a double slash when the path is /.  
That can induce some errors in a nginx config.
2017-09-30 13:01:15 +02:00
Jimmy Monin
330a6fb9a7 Add and use ynh_get_debian_release 2017-09-25 21:59:55 +02:00