Commit graph

91 commits

Author SHA1 Message Date
Alexandre Aubin
ecc4c2bd1c tests: flake8 not happy about escape sequence in comment @_@ 2023-05-15 16:23:09 +02:00
yunohost-bot
74f4c1660c [CI] Format code with Black 2023-05-08 14:27:54 +00:00
Alexandre Aubin
8fbdd228ab appsv2: in perm resource, fix handling of additional urls containing vars to replace 2023-04-28 22:40:40 +02:00
Alexandre Aubin
b489d8bd99
Merge pull request #1637 from YunoHost/enh-perms-declaration
Support variables in permissions declaration
2023-04-11 13:58:19 +02:00
Alexandre Aubin
8ca756dbd3 appsv2: simplify code to hydrate url/additional_urls with app settings 2023-04-11 13:57:50 +02:00
Alexandre Aubin
aa43e6c22b appsv2: fix edge-case when validating packager-provided infos for permissions resource 2023-04-10 14:34:10 +02:00
tituspijean
fa26574b51
Ooops 2023-04-06 23:32:46 +02:00
tituspijean
a66fccbd5b
Support variables in permissions declaration 2023-04-06 23:21:57 +02:00
Alexandre Aubin
9a4267ffa4 appsv2: for the dir/subdirs of data_dir, create parent folders if they don't exist 2023-04-05 15:58:26 +02:00
yunohost-bot
4e799bfbc3 [CI] Format code with Black 2023-04-02 18:52:32 +00:00
Alexandre Aubin
4b46f32201 appv2: add support for subdirs property in data_dir 2023-03-31 20:26:08 +02:00
Alexandre Aubin
306c5e0e10 app resources: add documentation about latest_github_commit strategy for source autoupdate + autoupdate.upstream 2023-03-31 20:11:25 +02:00
Alexandre Aubin
63981aacf9 appsv2: Add documentation about the new 'autoupdate' mechanism for app sources 2023-03-27 20:34:49 +02:00
Alexandre Aubin
b2596f3287 appsv2: add validation for expected types for permissions stuff 2023-03-14 19:23:24 +01: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
0d524220e5 appsv2/sources: i18n 2023-03-08 16:44:52 +01:00
Alexandre Aubin
ebc9e645fc
Typo
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2023-03-08 16:23:58 +01:00
Alexandre Aubin
acb359bdbf Forgot to remove pdb D: 2023-03-06 20:15:20 +01:00
Alexandre Aubin
0a937ab0bd Unecessary pass statement 2023-03-06 20:06:11 +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
Kay0u
030d876329
trying to fix _port_is_used 2023-03-02 18:40:56 +01:00
yunohost-bot
76ff5b1844 [CI] Format code with Black 2023-03-01 00:47:18 +00:00
tituspijean
8701d8ec62
Handle undefined main permission url 2023-02-28 22:58:17 +01:00
Éric Gaspar
a3df78fe7e
Update resources.py
set `w` as default permission on `install_dir` folder
2023-02-24 18:46:31 +01:00
John Schmidt
9d214fd3c6
[Fixes 2158] Create parent dirs when provisioning install_dir
Signed-off-by: John Schmidt <john@schmidthaus.rocks>
2023-02-23 20:25:24 -08:00
Alexandre Aubin
e05df676dc appsv2: fix previous commit about __DOMAIN__ because url may be None x_x 2023-02-24 01:30:01 +01:00
yunohost-bot
6210d07c24 [CI] Format code with Black 2023-02-23 23:17:35 +00:00
Alexandre Aubin
943b9ff89f appsv2: fix usage of __DOMAIN__ in permission url 2023-02-23 22:25:44 +01:00
Alexandre Aubin
139e54a2e5
appsv2: data_dir's owner should have rwx by default 2023-02-23 21:53:59 +01:00
yunohost-bot
aa50526ccd [CI] Format code with Black 2023-02-21 19:49:52 +00:00
Alexandre Aubin
1dc8b75315 appsv2: fix check that postgresql db exists... 2023-02-21 17:08:12 +01:00
Alexandre Aubin
888593ad22 appsv2: fix resource provisioning scripts picking up already-closed operation logger, resulting in confusing debugging output 2023-02-21 14:57:10 +01:00
Alexandre Aubin
4dfff20140 appsv2: add support for a packages_from_raw_bash option in apt where one can add a multiline bash snippet to echo packages 2023-02-21 14:51:51 +01:00
Alexandre Aubin
ec4c2684f7 appsv2: zblerg I inadvertendly removed the line that update the user group x_x 2023-02-20 20:26:50 +01:00
Alexandre Aubin
63f0f08421 appsv2: revert commit that adds a bunch of warning about apt/database consistency, it's more relevant to have them in package linter instead 2023-02-20 18:03:32 +01:00
Alexandre Aubin
890b8e8082 Semantic 2023-02-20 17:52:27 +01:00
yunohost-bot
2389884e85 [CI] Format code with Black 2023-02-19 19:10:51 +00:00
Alexandre Aubin
ce7227c078 appsv2: add home dir that defaults to /var/www/__APP__ for system user resource 2023-02-19 18:10:05 +01:00
Alexandre Aubin
771b801ece appsv2: zbfgblg using '&' in os.system calls is interpreted using sh and not bash i guess... 2023-02-18 17:29:37 +01:00
Alexandre Aubin
d123fd7674 appsv2: fix user provisionion ... Aleks was drunk ... check_output('cmd &>/dev/null') will always return empty string... 2023-02-18 16:08:26 +01:00
Alexandre Aubin
97b69e7c69 appsv2: add check about database vs. apt consistency in resource / warn about lack of explicit dependency to mariadb-server 2023-02-17 15:19:23 +01:00
yunohost-bot
069b782f07 [CI] Format code with Black 2023-02-15 21:37:05 +00:00
Alexandre Aubin
0c4a006a4f appsv2: also replace __DOMAIN__ in resource properties 2023-02-15 19:46:25 +01:00
Alexandre Aubin
0ab20b733b appsv2: mysqlshow is fucking dumb and returns exit code 0 when DB doesnt exists ... 2023-02-14 16:09:55 +01:00
Alexandre Aubin
ab8a6b940f appsv2: fix check that main permission url is '/' 2023-02-13 18:28:45 +01:00
Alexandre Aubin
1d1a3756ba appsv2: missing raw_msg=True for exceptions 2023-02-13 18:17:39 +01:00
Alexandre Aubin
e39c89e087
Merge branch 'dev' into dev 2023-02-06 17:48:07 +01:00
Alexandre Aubin
71042f0860 appsv2: when initalizing permission, make sure to add 'all_users' when visitors is chosen 2023-02-06 14:32:19 +01:00
Alexandre Aubin
fb54da2e35 appsv2: moar fixes for v1->v2 upgrade not getting the proper env context 2023-02-04 18:46:33 +01:00