Commit graph

804 commits

Author SHA1 Message Date
33f8337f11 helper doc fixes : logging 2021-03-03 11:17:59 +01:00
966cd2ff16 helper doc fixes : hardware 2021-03-03 11:17:59 +01:00
8f294916d9 helper doc fixes : fail2ban 2021-03-03 11:06:54 +01:00
d69f031d8f helper doc fixes : backup 2021-03-03 11:06:54 +01:00
e6f3adfa08 helper doc fixes : apt 2021-03-03 11:06:51 +01:00
4603697ac5 helper doc fixes : permission 2021-03-03 11:06:43 +01:00
Alexandre Aubin
9b13c95f77 Re-add --others_var in fail2ban and systemd helpers for backward compatibility... 2021-03-02 19:54:24 +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
yalh76
c86d432783 Fixing ___APP__ 2021-02-28 18:56:30 +01:00
yalh76
fcea5a6af0 Make grep lazy 2021-02-28 13:38:10 +01:00
yalh76
c6d14219cc Force destination to be replaced 2021-02-27 20:39:55 +01:00
Alexandre Aubin
675c4d0eea Fix permission helper doc format 2021-02-25 16:57:57 +01:00
Alexandre Aubin
33f291be96 Fix ynh_replace_vars again, mystical bash is mystic... 2021-02-25 16:36:28 +01:00
Alexandre Aubin
3be6b822eb
Merge pull request #1173 from YunoHost/enh-ynh_systemd_action
[fix] Automatically call ynh_clean_check_starting when ynh_systemd_action fails
2021-02-25 16:00:31 +01:00
Kay0u
47420c6232
fix multimedia helper 2021-02-25 12:40:49 +01:00
Kay0u
1d3380415e
add missing getops 2021-02-25 11:17:46 +01:00
Kay0u
8f7ced35a5
fix ynh_systemd_action in case of service fails 2021-02-25 11:16:34 +01:00
Alexandre Aubin
53576a43e1
Merge pull request #1160 from YunoHost/use-jq-in-helpers
Use jq / output-as json to get info from yunohost commands instead of scraping with grep
2021-02-25 04:20:24 +01:00
Alexandre Aubin
d0088053fb
Merge pull request #1171 from YunoHost/fix-replace-string-escape
Gotta escape \ during ynh_replace_vars
2021-02-23 14:24:51 +01:00
Alexandre Aubin
5ba94f4add
Merge pull request #1172 from YunoHost/fix_ynh_add_config_basedir
Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running
2021-02-23 14:24:43 +01:00
Alexandre Aubin
acfea3d76d Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running 2021-02-23 02:17:04 +01:00
Alexandre Aubin
59da04e92b Gotta escape \ during ynh_replace_vars 2021-02-22 23:46:12 +01:00
Alexandre Aubin
1adff77e3a Add multimedia helpers and hooks 2021-02-22 21:01:23 +01:00
Alexandre Aubin
ac38e53a7c Remove getopts from ynh_exec_as 2021-02-03 16:50:04 +01:00
Alexandre Aubin
06185a2392 Use jq / output-as json to get info from yunohost commands instead of scraping with grep 2021-02-02 03:45:13 +01:00
Alexandre Aubin
a618ae4f4d
Merge pull request #1118 from YunoHost/normalize-conf-template-handling
Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config
2021-01-31 16:15:45 +01:00
Alexandre Aubin
9d0bda548a Do not ynh_die if systemctl action fails, because we don't want to exit in the middle of a remove script ... instead, return a non-zero code which should trigger script failure only if set -eu is enabled 2021-01-31 11:57:34 +01:00
Alexandre Aubin
598408aeb2
Merge pull request #1151 from ericgaspar/ynh_exec_as
Add ynh_exec_as to official
2021-01-30 16:43:59 +01:00
ericgaspar
43f121baed
Move ynh_exec_as helper to user section 2021-01-28 08:07:53 +01:00
Alexandre Aubin
c0fc29eef9
Merge pull request #1137 from ericgaspar/N---Node.js-version-management
Upgrade n to v7.0.0
2021-01-23 16:05:02 +01:00
Alexandre Aubin
72822ce987 Replace #sub_path_only and #root_path_only in the template *before* calling ynh_add_config, otherwise the it ain't in the checksum computation 2021-01-23 04:33:28 +01:00
Alexandre Aubin
c023b177fe Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config 2021-01-23 04:33:28 +01:00
Alexandre Aubin
75ebadfcff
Merge pull request #1090 from yalh76/composer
[enh] Adding composer helper
2021-01-23 00:13:08 +01:00
ericgaspar
6e9ab553b8
Add ynh_exec_as to official 2021-01-22 17:08:28 +01:00
Alexandre Aubin
b98dd8585b
Merge pull request #1116 from YunoHost/enh-python3
Python2 -> Python3
2021-01-19 23:06:57 +01:00
Kayou
5c7e503316
Typo 2021-01-19 11:20:07 +01:00
Alexandre Aubin
75193337b1
Merge pull request #1136 from YunoHost/fix-ynh_check_app_version_changed
set ynh_check_app_version_changed as deprecated
2021-01-14 20:25:15 +01:00
ericgaspar
d5efb06b62
Upgrade n to v7.0.0 2021-01-14 11:21:07 +01:00
Kay0u
090cd0b13a
copy the behavior of the old ynh_check_app_version_changed helper 2021-01-13 11:34:41 +01:00
Kayou
5b1cee4b70
One priority arg is enough 2021-01-13 11:21:41 +01:00
Kay0u
2ace0741c4
set ynh_check_app_version_changed as deprecated 2021-01-12 13:53:38 +01:00
Alexandre Aubin
c56883d027 Gotta explicitly return 0, otherwise the return code of last command is used, which in that case is 1 ... 2021-01-11 14:16:50 +01:00
Alexandre Aubin
c43a51ba30
Merge branch 'dev' into enh-python3 2021-01-10 18:31:19 +01:00
Alexandre Aubin
a665c702d0 Annnd of course we have references to python2 in bash stuff and other misc scripts 2021-01-10 02:07:24 +01:00
Alexandre Aubin
30dde208dc Fix ynh_replace_vars in case var is define but empty 2021-01-09 23:57:09 +01:00
Alexandre Aubin
ac4b62cebc Reduce the noise in logs because of ynh_app_setting 2021-01-09 18:16:08 +01:00
Alexandre Aubin
8f1b05f3cf [fix] Prevent info from being redacted (because of foobar_key=) by the logging system 2021-01-09 18:08:23 +01:00
Kay0u
4a0526ec91
Add doc 2021-01-06 12:04:09 +01:00
Alexandre Aubin
86a612fab1 c.f. change in the moulinette regarding call_async_output and the handling of stdinfo ... YNH_STDINFO is now a file descriptor instead of a named pipe 2021-01-01 04:04:56 +01:00
Kay0u
5c17ac5eec
[wip] add legacy permissions management 2020-12-31 18:34:37 +01:00