Commit graph

112 commits

Author SHA1 Message Date
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
Alexandre Aubin
d0d0d3e0da appv2: cosmetic, having the notification name is weird, it's gonna be pretty much always just 'main' 2023-01-04 01:18:06 +01:00
Alexandre Aubin
2f1ddb1edf appv2: simplify the expected notification file/folder structure in apps 2023-01-04 01:16:47 +01:00
Alexandre Aubin
e9b5ec90a4 Yoloimplementation of app logo support (require change in app catalog build) 2023-01-03 00:46:14 +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
8ab28849a1 app resource: handle the --purge logic for data_dir removal 2022-12-21 23:11:09 +01:00
Alexandre Aubin
fa2ef3e7ec appv2: better error handling for app resources provisioning/deprovisioning/update failures 2022-12-21 20:39:10 +01:00
axolotle
66d99e7fcb _check_manifest_requirements: fix "disk" req message with least free space dir 2022-12-21 15:53:05 +01:00
axolotle
cf2e7e1295 _check_manifest_requirements: raise error for "packaging_format" check 2022-12-21 13:04:09 +01:00
Alexandre Aubin
57c36a668d appv2: for app v1 backward compat, don't set arbitrary values for ram/disk usage, use '?' instead 2022-12-07 21:12:54 +01:00
Alexandre Aubin
70a2251588 Merge branch 'dev' into enh-apps-v2 2022-12-07 19:36:52 +01:00
Alexandre Aubin
08521882ca Add a global setting to choose SSOwat's theme 2022-12-06 20:20:24 +01:00
axolotle
700154ceb6 app_upgrade return post_install notif to API 2022-12-04 15:20:03 +01:00
axolotle
968687b512 move tools_update check for notif in _list_upgradable_apps helper 2022-12-04 15:02:32 +01:00
axolotle
6ae9108dec add --with-screenshot option for app_manifest + rename 'image' key to 'screenshot' 2022-12-04 14:42:07 +01:00
Axolotle
b17e00c31e
skip confirmation if ran from CLI in a non-interactive context
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:24:47 +01:00
Axolotle
d4d739bbe2
improve version check & rename check key
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:23:32 +01:00
Axolotle
92608c6ee3
normalize _extract_app_from_* manifest keys
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:19:11 +01:00
Axolotle
8d9605161c
add some comments
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:15:29 +01:00
Axolotle
34b191582a
rename 'check' boolean to 'passed'
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:12:42 +01:00
Alexandre Aubin
807c1b3794
Merge branch 'dev' into enh-apps-v2 2022-12-03 16:11:56 +01:00
Alexandre Aubin
080988d20e Fixes for the linter overlords 2022-11-26 23:56:27 +01:00
axolotle
dcf4b85b21 app_manifest: return base64 screenshot to API 2022-11-26 15:48:18 +01:00