Commit graph

10201 commits

Author SHA1 Message Date
Alexandre Aubin
f895724a25 helpers 2.1: remove legacy ynh_webpath_available and ynh_webpath_register 2024-05-27 22:45:25 +02:00
Alexandre Aubin
8b59e315bf helpers 2.1: remove legacy ynh_psql_test_if_first_run 2024-05-27 22:42:52 +02:00
Alexandre Aubin
b79ff15d32 helpers 2.1: remove legacy --nonappend/--non-append arg in logrotate helper 2024-05-27 22:40:35 +02:00
Alexandre Aubin
6b577bdd23 helpers 2.1: remove packaging v1 ynh_backup_before_upgrade and ynh_restore_upgradebackup, handled by core in packaging v2 2024-05-27 22:39:43 +02:00
Alexandre Aubin
94c12c6409 helpers 2.1: heavily simplify php-related helpers: remove --phpversion argument, --composerversion (define YNH_COMPOSER_VERSION prior to calling helper), --usage/--footprint (can still be customized by defining fpm_usage/footprint setting) 2024-05-27 22:38:53 +02:00
Alexandre Aubin
1b03058858 helpers 2.1: simplify the apt extra repo clusterfuck / unused args etc 2024-05-27 21:47:32 +02:00
Alexandre Aubin
422e02244d helpers 2.1: fix indent 2024-05-27 21:07:52 +02:00
Alexandre Aubin
365d0b25af helpers 2.1: drop ynh_find_port, ynh_port_available, ynh_validate_ip4/6, keep only ynh_validate_ip 2024-05-27 21:07:52 +02:00
Alexandre Aubin
aa6634fd22 helpers 2.1: rework argument parsing comment to improve readability, consistency 2024-05-27 21:07:39 +02:00
Alexandre Aubin
0915a6a70b helpers 2.1: Drop support for old .src format in ynh_setup_source 2024-05-27 18:48:39 +02:00
Alexandre Aubin
4a74a7c51d helpers 2.1: remove support for __NAME__ and __NAMETOCHANGE__ replaced by $app in templates 2024-05-27 18:48:36 +02:00
Alexandre Aubin
6e13a4db1b helpers 2.1: remove unecessary --app=$app in internals ynh_app_setting_get/set calls 2024-05-27 18:48:26 +02:00
Alexandre Aubin
b914ad9093 helpers 2.1: drop support for 'legacy args' (positionals) in helpers 2024-05-27 18:48:21 +02:00
Alexandre Aubin
084ecd6578 helpers 2.1: backport most of the bookworm changes 2024-05-27 18:48:16 +02:00
Alexandre Aubin
204800e878 helpers: copy v1 helpers to new v2.1 2024-05-27 18:48:07 +02:00
Alexandre Aubin
06dc3da3f4
Merge pull request #1854 from YunoHost/fix_helpers
Fix helpers: actually that might be a bad idea to read arguments
2024-05-27 17:29:02 +02:00
af2a56012f Fix helpers: actually that might be a bad idea to read arguments as if
`source helpers` has no arguments passed, $@ is the main script arguments.
2024-05-27 17:26:56 +02:00
Alexandre Aubin
55cfc46cdd
Merge pull request #1852 from YunoHost/actions/black
Format Python code with Black
2024-05-27 16:58:39 +02:00
alexAubin
e3282f2329 🎨 Format Python code with Black 2024-05-27 14:58:01 +00:00
Alexandre Aubin
2047d536be helpers: we need helpers.v2.d to be a symlink to helpers.v1.d? 2024-05-27 16:57:33 +02:00
Alexandre Aubin
c1b3c3f785
Merge pull request #1717 from Salamandar/helpers
Create versionned directories of the helpers
2024-05-27 16:49:05 +02:00
Alexandre Aubin
1e47a1438b apps: auto-define YNH_HELPERS_VERSION from a new 'helpers_version' key in the manifest's [integration] section, or fallback to the 'packaging_format' info 2024-05-27 16:38:09 +02:00
Alexandre Aubin
7011b1c879 YNH_APP_HELPERS_DIR -> YNH_HELPERS_DIR 2024-05-27 16:35:38 +02:00
5d3131b494 rework top-level helpers 2024-05-27 16:08:10 +02:00
a2bc8c4f38 Create versionned directories of the helpers 2024-05-27 16:08:10 +02:00
Alexandre Aubin
12764652b0 helpers: Add a --jinja option to ynh_add_config 2024-05-26 20:10:30 +02:00
Alexandre Aubin
6aa9d05372
Merge pull request #1847 from chri2/getopts_echo_printf
Update getopts to accept arguments that are valid arguments to echo
2024-05-22 13:10:23 +02:00
Alexandre Aubin
84d1a6bcca Attempt to fix mypy ? 2024-05-21 23:21:00 +02:00
Alexandre Aubin
259c596e12 Fix invalid escape sequence? 2024-05-21 23:16:55 +02:00
Chris Vogel
3b8a91efe6
Update getopts to accept arguments that are valid arguments to echo
The usage of `echo` to output arguments to to a pipe leads to the problem that arguments that are valid to `echo` itself cannot be processed:

```
root@yt:~# TEST='-n'
root@yt:~# printf '%s\n' $TEST
-n
root@yt:~# echo "$TEST"
root@yt:~# echo "debug $TEST"
debug -n
```

Replacing `echo` with `printf` improves the situation.
2024-05-21 10:15:13 +02:00
Salamandar
110dffeb7f
Merge pull request #1844 from YunoHost/mongodb-helper
Add mongodb helpers
2024-05-21 00:56:10 +02:00
Alexandre Aubin
d5e054fe80 doc: fix gitlab helper/resource doc automagic PR because doc structure changed 2024-05-20 01:46:44 +02:00
OniriCorpe
71dabfea6c Update 11.2.12 2024-05-20 00:07:42 +02:00
Alexandre Aubin
14a8445375 helpers/ruby: fix unbound variable 2024-05-19 20:55:20 +02:00
Alexandre Aubin
0a5dd1b099
Update log.py: fix fstring with no arg 2024-05-19 20:51:45 +02:00
Alexandre Aubin
437f21ed5a Revert "Delete helpers/mongodb, to be readded in another PR"
This reverts commit 9b7b265cbf.
2024-05-19 15:51:14 +02:00
Alexandre Aubin
f6d38bebee
Merge pull request #1838 from ericgaspar/dev
Add redis and ruby helpers
2024-05-19 15:50:47 +02:00
Alexandre Aubin
9b7b265cbf
Delete helpers/mongodb, to be readded in another PR 2024-05-19 15:50:18 +02:00
Alexandre Aubin
ad6c75652c
Update helpers/ruby 2024-05-19 15:21:05 +02:00
Alexandre Aubin
30046784a0
Update ruby: simplify messages, fix bash mess 2024-05-19 15:20:33 +02:00
eric_G
f798236a3a
Update helpers/redis
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 17:17:01 +02:00
eric_G
44840603b5
Update helpers/mongodb
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:36:05 +02:00
eric_G
7f52988671
Update helpers/mongodb
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:35:37 +02:00
eric_G
89e24eb258
Update helpers/ruby
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:33:41 +02:00
eric_G
76c54ebdea
Update helpers/ruby
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:33:30 +02:00
Alexandre Aubin
48c673478d
Merge pull request #1805 from Abperron/enh-2047-log-show-last-x
[enh] Implement 'yunohost log show last' to display the last log file.
2024-05-18 14:29:36 +02:00
Alexandre Aubin
c2c27a01fc
Merge pull request #1819 from YunoHost/fix-_check_domain_is_ready_for_ACME-for-sub-subdomain
[fix] renew cert for sub subdomain
2024-05-18 14:20:28 +02:00
Chris Vogel
1c7e139c74
Update main.cf to allow aliases for sender addresses of apps
If an app registers the sender address _app@doma.in_ **and** a yunohost account configured an alias for the same address the app will not be able to send emails anymore.

postfix asks the first map defined in smtpd_sender_login_maps and finds that the address _app@doma.in_ can be used as a sender address by the yunohost account having configured the alias and **then stops and doesn't look up the second list** for registered apps.

The unionmap instructs postfix to join a list from both sources and then return the match from that joined list which would then contain _yunohost_account_having_registered_alias, appname_ for the lookup of _app@doma.in_.

This allows the yunohost account having registered the alias and the app being registered to use the sender address to send email using that sender **and makes it possible to receive replies to the emails going out from the app**.

Reference: https://serverfault.com/questions/948362/postfix-multiple-smtpd-sender-login-maps
2024-05-18 14:03:32 +02:00
Alexandre Aubin
c459ddabbd
Merge pull request #1842 from YunoHost/corepaaaaaack
Prevent yet another Node and Corepack madness
2024-05-17 21:47:09 +02:00
tituspijean
3010066190
Prevent yet another Node and Corepack madness 2024-05-17 21:32:27 +02:00