Commit graph

141 commits

Author SHA1 Message Date
tituspijean
cc167cd92c
Rename ynh_load_app_environment into ynh_spawn_app_shell
Co-authored-by: Florent <florent.git@zeteo.me>
2023-05-24 21:12:06 +00:00
tituspijean
21c7c41812
Extend ynh_load_app_environment usage examples
Co-authored-by: Florent <florent.git@zeteo.me>
2023-05-24 23:08:53 +02:00
tituspijean
072dabaf70
Fix Bash detection for ynh_load_app_environment 2023-05-18 16:45:17 +00:00
tituspijean
68a4f2b4bc
Improve ynh_load_environment helper 2023-05-18 16:14:50 +00:00
tituspijean
d27e9a9eea
Add ynh_load_app_environment helper 2023-05-18 16:14:49 +00:00
Alexandre Aubin
d698c4c3de helpers: improve error message for corrupt source in ynh_setup_source, it's more relevant to cite the source url rather than the downloaded output path 2023-05-15 16:46:29 +02:00
Alexandre Aubin
e59a4f849a helpers: using YNH_APP_ID instead of YNH_APP_INSTANCE_NAME during ynh_setup_source download, for more consistency and because tests was actually failing since a while because of this 2023-05-13 19:18:40 +02:00
Alexandre Aubin
a7350a7eae appsv2/regenconf: prevent set -u to be enabled during regen-conf triggered from inside appsv2 scripts 2023-05-04 17:02:35 +02:00
yunohost-bot
63760680f8 Upgrade n to v 2023-04-28 05:11:13 +00:00
Alexandre Aubin
8c25aa9b9f helpers: fix previous change about using YNH_APP_ACTION ... which is not defined in config panel context 2023-04-04 15:55:55 +02:00
Alexandre Aubin
14bf2ee48b appsv2: various fixes regarding sources toml parsing/caching 2023-04-02 20:28:29 +02:00
Alexandre Aubin
1b2fa91ff0
ynh_setup_source: fix buggy checksum mismatch handling, can't compute the sha256sum after we delete the file @_@ 2023-03-20 15:49:23 +01:00
Alexandre Aubin
3656c19918 helpers/appsv2: don't remove yhh-deps virtual package if ... it doesn't exist. Otherwise when apt fails to install dependency, we end up with another error about failing to remove the ynh-deps package 2023-03-14 18:45:04 +01:00
Alexandre Aubin
eabde600be
Merge pull request #1627 from YunoHost/simplify-n-management
helpers/nodejs: simplify 'n' script install and maintenance
2023-03-11 16:49:50 +01:00
Alexandre Aubin
eaf7a2904c helpers: fix ynh_setup_source, 'source_id' may contain slashes x_x 2023-03-11 14:57:48 +01:00
Alexandre Aubin
13ac9dade6 helpers/nodejs: simplify 'n' script install and maintenance 2023-03-10 16:00:53 +01:00
Alexandre Aubin
7491dd4c50 helpers: Fix documentation for ynh_setup_source 2023-03-09 20:57:33 +01:00
Alexandre Aubin
69518b5417 Bash being bash ~_~ 2023-03-09 20:41:29 +01:00
Alexandre Aubin
738d0679da
Merge pull request #1615 from YunoHost/sources_toml
helpers: add support for a 'sources' app resources to modernize and replace app.src format
2023-03-09 15:20:06 +01:00
Alexandre Aubin
cb32423236
appsv2/sources: Reflect changes in ynh_setup_source doc 2023-03-09 15:18:29 +01:00
Alexandre Aubin
4102d626e5 appsv2/sources: change 'sources.toml' to a new 'sources' app resource instead 2023-03-06 19:57:12 +01:00
Alexandre Aubin
091f7de827 Typo >_> 2023-03-04 21:40:59 +01:00
Alexandre Aubin
8731f77aa9 helpers: simplify --time display option for ynh_script_progression .. we don't care about displaying time when below 10 sc 2023-03-04 21:35:35 +01:00
Alexandre Aubin
d04f2085de helpers: omg base64 wraps the output by default :| 2023-03-01 22:12:27 +01:00
Alexandre Aubin
c24c0a2ae1 helper: fix previous tweak about debugging diff for manually modified files on the CI @_@ 2023-03-01 08:10:07 +01:00
Alexandre Aubin
7636b486c0
Merge pull request #1617 from YunoHost/more-robust-service-start-detection
helpers: more robust way to grep that the service correctly started ?
2023-02-28 13:22:46 +01:00
Alexandre Aubin
e03f609e9b helpers: tweak behavior of checksum helper in CI context to help debug why file appear as 'manually modified' 2023-02-27 19:30:18 +01:00
Alexandre Aubin
7631d380fb helpers: more robust way to grep that the service correctly started ? 2023-02-27 17:08:00 +01:00
Alexandre Aubin
eb6d9df92f helpers: add support for a sources.toml to modernize and replace app.src format 2023-02-26 20:09:04 +01:00
Alexandre Aubin
2b70ccbf40 apps: simplify the redaction of change_url scripts by adding a new ynh_change_url_nginx_config helper + predefining new/old/change domain/path variables 2023-02-20 17:52:27 +01:00
Alexandre Aubin
60b21795b8 appsv2: in php helpers, use the global $phpversion var/setting by default instead of $YNH_PHP_VERSION 2023-02-15 19:49:54 +01:00
Alexandre Aubin
e24ddd299e helpers: in apt/php stuff, don't try to upgrade-alternatives if the default PHP version ain't available anymore 2023-02-15 19:24:14 +01:00
Alexandre Aubin
e39c89e087
Merge branch 'dev' into dev 2023-02-06 17:48:07 +01:00
Alexandre Aubin
cb505b578b
ynh_install_composer: use either final_path or install_dir depending on packaging format 2023-02-06 17:47:03 +01:00
ljf
ca0db0ec58
[fix] ynh_write_var_in_file should replace one occurencies 2023-02-06 15:44:50 +01:00
ljf (zamentur)
9f686a115f
[fix] Put a & into a config var 2023-02-06 14:28:06 +01:00
ljf (zamentur)
8241e26fc2
[fix] Write var in files with redundants keys 2023-02-06 13:51:32 +01:00
ljf (zamentur)
f742bdf832
[fix] Allow to do replace string with @ 2023-02-06 13:26:36 +01:00
Alexandre Aubin
3bbba640e9 appsv2: ignore the old/ugly/legacy removal of apt deps when removing the php conf, because that's handled by the apt resource 2023-02-03 21:05:23 +01:00
Éric Gaspar
634fd6e7fc Fix workdir variable for package v.2 2023-02-03 09:45:20 +01:00
Alexandre Aubin
13d4e16e7d helpers/appsv2: replacement of __PHPVERSION__ should use the phpversion setting, not YNH_PHP_VERSION 2023-02-03 02:25:36 +01:00
Alexandre Aubin
9b7668dab0 helpers: fix remaining __FINALPATH__ in php template (note that this is backward compatible because ynh_add_config will replace __INSTALL_DIR__ by $finalpath if $finalpath exists... 2023-02-02 23:57:24 +01:00
Florent
b9dc371a1c
Fixes $app unbound when running ynh_secure_remove
Fixes this issue: https://github.com/YunoHost/issues/issues/2138
2023-02-02 16:33:01 +01:00
tituspijean
7dd2b41eef
Print size in error message if ynh_setup_source checksum fails
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-31 18:07:25 +01:00
tituspijean
90aa55599d
Output checksums if ynh_setup_source fails
during their verification.
2023-01-31 17:56:32 +01:00
Éric Gaspar
e73209b7c4 Add --routines flag 2023-01-16 16:58:18 +01:00
Alexandre Aubin
7d9984c109 Fix a bunch of inconsistency or variable not properly replaced between final_path/install_dir 2022-12-26 15:37:28 +01:00
Alexandre Aubin
47b9b8b520 configpanels: fix inconsistent return format for boolean, sometimes 1/0, sometimes True/False -> force normalization of values when calling get() for a single setting from a config panel 2022-12-20 19:51:21 +01:00
Alexandre Aubin
94f21ea20e multimedia: fix edgecase where setfacl crashes because of broken symlinks 2022-12-01 23:22:46 +01:00
Augustin Trancart
f49c121b8c Better error message when psql is not there for database_exists (#992) 2022-11-29 22:23:35 +01:00