Commit graph

784 commits

Author SHA1 Message Date
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
Kay0u
78751ac655
Move permissions helpers to a new file 2020-12-31 18:33:09 +01:00
Alexandre Aubin
6419c2ac64 Don't mess with Sury's pinning 2020-12-24 15:38:39 +01:00
Kay0u
b7c43df661
no more ; 2020-12-18 17:03:51 +01:00
Kay0u
58dcf45bd9
do not reload php7.3 too fast 2020-12-18 16:55:39 +01:00
Alexandre Aubin
ff5d8ebd61 Missing ;, probably 2020-12-18 15:29:52 +01:00
Kay0u
8cab56787e
handle change php version 2020-12-17 16:06:45 +01:00
Kayou
31cd163260
Merge pull request #1073 from ericgaspar/upgrade-n
Upgrade n version to upstream
2020-12-02 21:51:05 +01:00
yalh76
11cef18ab9 [enh] Adding composer helper 2020-12-01 23:19:07 +01:00
Alexandre Aubin
b07fc2061a
Do not reload php-fpm if conf breaks it (#1087) 2020-11-30 23:20:45 +01:00
Kayou
7a0aa851a6
Keep helpers consistent 2020-11-26 11:00:24 +01:00
Kay0u
f495f1cf71
default value (True) for sync_perm param in helpers 2020-11-25 02:11:06 +01:00
Alexandre Aubin
144f98ad44
Gotta define a default value to avoid unbound variable 2020-11-10 17:09:23 +01:00
ericgaspar
9269c55cb0
Upgrade n version to upstream 2020-11-08 23:15:35 +01:00
Alexandre Aubin
c45c182980
Merge pull request #861 from YunoHost/permission_protection
Extends permissions features
2020-10-30 14:51:52 +01:00
Alexandre Aubin
c979d1e640 Do not display a huge wall of boring logs while waiting for the service to start 2020-10-20 14:21:27 +02:00
Alexandre Aubin
a7d105ace6 Merge branch 'dev' into permission_protection 2020-09-30 18:48:26 +02:00
Alexandre Aubin
950dbc6b46
Merge pull request #935 from YunoHost/remove_legacy_settings
Remove legacy settings
2020-09-30 17:06:08 +02:00
Alexandre Aubin
dd9df5943e Set sub-permission labels as 'Mainlabel (Sublabel)' 2020-09-27 18:20:29 +02:00
Alexandre Aubin
ea685c46d4
Merge pull request #1055 from YunoHost/add-config-helper
Add ynh_add_config helper
2020-09-24 21:25:34 +02:00
Alexandre Aubin
815c8fc49e Refactor app_setting to better separate legacy permission setting vs. regular setting, hopefully make the core more readable 2020-09-24 20:25:28 +02:00