Commit graph

121 commits

Author SHA1 Message Date
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
Alexandre Aubin
8188c28167 appsv2: add documentation for previously introduced allow_email flag 2023-02-28 18:10:27 +01:00
Alexandre Aubin
c48d9ec483 appsv2/mail: add new 'allow_email' flag on app system users that will autogenerate a passwd-like file to be used by dovecot + map for postfix 2023-02-28 17:56:49 +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
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
0e787acb5d
appv2: typo in ports resource doc x_x 2023-02-03 15:32:09 +01:00
Éric Gaspar
b06a3053f6 Fix spacing 2023-02-03 10:21:09 +01:00
Alexandre Aubin
2107a84852 appv2 resources: document the fact that the apt resource may create a phpversion setting when the dependencies contain php packages 2023-02-03 02:41:28 +01:00
Alexandre Aubin
ba4f192557 maintenance: new year, update copyright header 2023-02-02 23:51:14 +01:00
yunohost-bot
b943c69c8b [CI] Format code with Black 2023-02-01 17:10:08 +00:00
yunohost-bot
9bf2b0b546 [CI] Format code with Black 2023-01-06 06:00:05 +00:00
Alexandre Aubin
cddfafaa55 app resource: fix boring test edge case related to the initial properties object being modified 2023-01-06 03:50:22 +01:00
Alexandre Aubin
02abcd41f9 app resources: Fix tests 2023-01-05 23:57:42 +01:00
Alexandre Aubin
6d4659a782 app resources: fix ambiguity for db resource 'type' property 2022-12-22 23:13:20 +01:00
Alexandre Aubin
df8f14eec6 app resources: implement logic for port 'exposed' and 'fixed' options 2022-12-22 23:13:10 +01:00
Alexandre Aubin
4775b40b95 Hmpf 2022-12-22 01:15:54 +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
a50e73dc0f app resources: implement permission update 2022-12-21 22:29:31 +01:00
Alexandre Aubin
fa2ef3e7ec appv2: better error handling for app resources provisioning/deprovisioning/update failures 2022-12-21 20:39:10 +01:00
yunohost-bot
7c05df05b7 [CI] Format code with Black 2022-10-24 16:59:10 +00:00
Alexandre Aubin
bd7081baf2 maintenance: cleanup .py file headers + automate boring copyright headers... 2022-10-09 18:38:34 +02:00
Alexandre Aubin
0d2cb690b3 manifestv2: moar test fixes 2022-09-03 16:35:09 +02:00
Alexandre Aubin
f6970ba403 manifestv2: Add doc about each resource type + script to create doc file 2022-09-03 01:19:16 +02:00
Alexandre Aubin
487ef303d8 Typo again ugh 2022-09-03 01:04:58 +02:00