Commit graph

59 commits

Author SHA1 Message Date
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
Alexandre Aubin
74e745a291 Stupid typo >_> 2022-09-02 21:44:00 +02:00
Alexandre Aubin
ebe41411ad Unused imports 2022-09-02 21:03:25 +02:00
Alexandre Aubin
7bd5857b3c manifestv2: fix some FIXME, add some others @_@ 2022-09-02 21:01:39 +02:00
Alexandre Aubin
564c2de815 manifestv2: moar attempts to fix mypy errors 2022-09-02 20:34:41 +02:00
Alexandre Aubin
0610a1808b manifestv2: attempt to fix mypy errors é_è 2022-09-02 00:20:44 +02:00
Alexandre Aubin
4faeabefa2 manifestv2: moar test fixes 2022-09-01 21:51:48 +02:00
Alexandre Aubin
8b1333a837 manifestv2: iterate on notifications/doc + implement tests for it 2022-05-21 14:23:11 +02:00
Alexandre Aubin
9902d191aa manifestv2: improve permission resouce test 2022-05-14 00:15:42 +02:00
Alexandre Aubin
61d7ba1e40 manifestv2: fix ports resource test 2022-04-27 22:06:50 +02:00
Alexandre Aubin
9cb97640b9 manifestv2: misc fixes + add test for manifestv2 install 2022-01-28 22:12:01 +01:00
Alexandre Aubin
d9873e085d app resources: Support several ports 2022-01-28 21:21:41 +01:00
Alexandre Aubin
011c2059a5 appresources: fixes /o\ 2022-01-16 03:34:53 +01:00