Commit graph

134 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
2b65913b89
Launch app shell 2023-05-18 19:35:56 +00:00
tituspijean
425670bcfb
Remove useless var declaration in app_shell function 2023-05-18 16:14:50 +00:00
tituspijean
d27e9a9eea
Add ynh_load_app_environment helper 2023-05-18 16:14:49 +00:00
tituspijean
3bb32dc1e4
Init app_shell 2023-05-18 16:14:49 +00:00
Alexandre Aubin
8fa823b414 appsv2: fix funky current_version not being defined when hydrating pre-upgrade notifications 2023-05-13 19:07:34 +02:00
yunohost-bot
74f4c1660c [CI] Format code with Black 2023-05-08 14:27:54 +00:00
tituspijean
328d9276f0
Fix str(current_version)
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-05-02 13:16:38 +02:00
tituspijean
667612619b
Fix current_version parsing for notifications
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-05-01 18:04:31 +02:00
axolotle
ba32078180 configpanel: rename data methods 2023-04-19 20:27:17 +02:00
axolotle
67687b7cff configpanel: reorder ConfigPanel methods 2023-04-19 20:27:17 +02:00
axolotle
f9fd379997 form: rename Questions to Options 2023-04-19 20:27:17 +02:00
tituspijean
c96b378d3e
[enh] app id in settings 2023-04-12 21:30:28 +02:00
axolotle
bee218e560 fix configpanel.py and form.py imports 2023-04-04 16:05:36 +02:00
yunohost-bot
98c7b60311 [CI] Format code with Black 2023-03-09 16:19:40 +00: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
4102d626e5 appsv2/sources: change 'sources.toml' to a new 'sources' app resource instead 2023-03-06 19:57:12 +01:00
Alexandre Aubin
729868429a appsv2: when hydrating template, the data may be not-string, eg ports are int 2023-03-03 22:54:37 +01:00
yunohost-bot
76ff5b1844 [CI] Format code with Black 2023-03-01 00:47:18 +00:00
Alexandre Aubin
276cf11c4d
Merge pull request #1602 from YunoHost/app-upgrade-continue-on-failures
feat: add '--continue-on-failure' to 'yunohost app upgrade
2023-02-28 13:33:50 +01:00
Laurent Peuch
404746c125 feat: add '--continue-on-failure' to 'yunohost app upgrade 2023-02-24 03:33:10 +01:00
Alexandre Aubin
bab27014d9 apps: when creating the app's bash env for script, make sure to use the manifest from the workdir instead of app setting dir, which is important for consistency during edge case when upgrade from v1 to v2 fails 2023-02-23 14:53:57 +01:00
Alexandre Aubin
df6a2a2cd2 apps: add 'YNH_DEBIAN_VERSION' variable in apps contexts 2023-02-21 13:03:51 +01:00
Alexandre Aubin
e1d62a1910
apps: Fix edge case in change_url where old_nginx_conf_backup could be None 2023-02-20 20:50:53 +01:00
yunohost-bot
95b80b056f [CI] Format code with Black 2023-02-20 19:46:58 +00: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
890b8e8082 Semantic 2023-02-20 17:52:27 +01:00
Alexandre Aubin
d3ec5d055f apps: fix edge case when upgrading using a local folder not modified since a while 2023-02-19 18:10:35 +01:00
Alexandre Aubin
58ac633d80 apps: don't miserably crash when failing to read .md file such as DESCRIPTION.md 2023-02-17 15:27:28 +01:00
yunohost-bot
069b782f07 [CI] Format code with Black 2023-02-15 21:37:05 +00:00
Alexandre Aubin
7be7eb1154 apps: fix inconsistent app removal during remove-after-failed-upgrade and remove-after-failed-backup contexts 2023-02-14 17:33:50 +01:00
Alexandre Aubin
aa9bc47aa6 appsv2: fix i18n for arch mismatch, can't juste join() inside string formated with .format() 2023-02-13 14:47:25 +01:00
Alexandre Aubin
9bd4344f25 appsv2: we don't want to store user-provided passwords by default, but they should still be set in the env for the script to use it 2023-02-12 22:26:05 +01:00
Alexandre Aubin
476908bdc2 appsv2: fix permission provisioning for fulldomain apps + fix apps not properly getting removed after failed resources init 2023-02-03 20:38:27 +01:00
Alexandre Aubin
ba4f192557 maintenance: new year, update copyright header 2023-02-02 23:51:14 +01:00
yunohost-bot
ca3fb85286 [CI] Format code with Black 2023-02-02 22:43:47 +00:00
Alexandre Aubin
2b2d49a504 appv2: fix env not including vars for v1->v2 upgrade 2023-02-02 23:20:52 +01:00
Alexandre Aubin
1c95bcff09 appv2: safety-backup-before-upgrade should only contain the app 2023-02-02 23:20:52 +01:00
Alexandre Aubin
3110460a40 appv2: resource upgrade will tweak settings, we have to re-update the env_dict after upgrading resources 2023-02-02 23:20:52 +01:00
yunohost-bot
b943c69c8b [CI] Format code with Black 2023-02-01 17:10:08 +00:00
yunohost-bot
8859038a41 [CI] Format code with Black 2023-01-10 01:30:51 +00:00
Alexandre Aubin
25c10166cf apps: fix trick to find the default branch from git repo @_@ 2023-01-10 00:48:44 +01:00
Alexandre Aubin
f258eab6c2 ssowat: add use_remote_user_var_in_nginx_conf flag on permission 2023-01-09 23:58:45 +01:00
YunoHost Bot
b9be18c781
[CI] Format code with Black (#1562) 2023-01-08 15:52:48 +01:00
Alexandre Aubin
a6db52b7b4 apps: don't clone 'master' branch by default, use git ls-remote to check what's the default branch instead 2023-01-08 14:59:10 +01:00
Alexandre Aubin
dd33476fac i18n: fix (un)defined string issues 2023-01-06 21:33:36 +01:00
yunohost-bot
9bf2b0b546 [CI] Format code with Black 2023-01-06 06:00:05 +00:00
Alexandre Aubin
e54bf2ed67 appv2: fix pre-upgrade version check 2023-01-05 20:50:43 +01:00
axolotle
946c0bcf7d fix app_instance_name var + formatting 2023-01-05 20:35:47 +01:00
Alexandre Aubin
7a35a3a671 appv2: implement dismiss logic for app notifications 2023-01-04 20:22:49 +01:00