Commit graph

2490 commits

Author SHA1 Message Date
Alexandre Aubin
97e5d3b992 Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2019-11-28 00:10:40 +01:00
Alexandre Aubin
b74c7c888c Improve robustness / idempotency(?) of new app catalog migration 2019-11-27 15:37:22 +01:00
Alexandre Aubin
06fe3504b3 Change app catalog API to support categories 2019-11-26 00:38:36 +01:00
Alexandre Aubin
3951f5e1b8 Refactor the whole app_list and app_info madness ... 2019-11-25 21:05:00 +01:00
Alexandre Aubin
7518beaf2f Fuck it we don't need these options 2019-11-25 19:23:31 +01:00
Alexandre Aubin
97138e9209 Try to remove as many app_list() call as possible, replace them with a simple _installed_apps() 2019-11-25 19:07:52 +01:00
Alexandre Aubin
101d3beebf Simplify app_list, don't call app_info (which itself calls app_list...) just to fetch the label from the settings 2019-11-25 18:26:26 +01:00
Alexandre Aubin
c12017418a
Merge pull request #784 from YunoHost/simpler-ldap-conf
Propagate change on LDAP conf / authenticator
2019-11-25 16:20:42 +01:00
Alexandre Aubin
615a164c06
Merge pull request #791 from decentral1se/add-pop3-setting
Add pop3.enabled setting
2019-11-25 16:19:36 +01:00
Kayou
c4590ab8ca
Fix test_backup_and_restore_permission_app 2019-11-25 23:01:44 +09:00
Alexandre Aubin
7fa61b49f4 Typo fix lost in the merges... 2019-11-23 19:27:18 +01:00
Alexandre Aubin
e686dc6866 Tweak tip at the end of postinstall to also point to diagnosis and admindoc 2019-11-22 19:38:21 +01:00
Alexandre Aubin
0277ec4f12 Warn early about unexisting user/groups (otherwise this triggers a journal entry for nothing) + simplify code, explicit assumptions 2019-11-22 18:16:32 +01:00
Alexandre Aubin
63e756b9f5 Adjust tests because now all_users ain't added automatically by permission_create for .main perms 2019-11-22 18:16:32 +01:00
Alexandre Aubin
625df81872 Postinstall was broken because of missing import 2019-11-22 18:15:50 +01:00
Alexandre Aubin
fdf5f16739 Warn early about unexisting user/groups (otherwise this triggers a journal entry for nothing) + simplify code, explicit assumptions 2019-11-22 18:12:02 +01:00
Alexandre Aubin
6eb8efb6f0 Adjust tests because now all_users ain't added automatically by permission_create for .main perms 2019-11-22 16:41:43 +01:00
Alexandre Aubin
9c9ea6d530 This fix disappeared in the merge mess at some point ... 2019-11-22 16:24:08 +01:00
Kay0u
1b8e528965 symplify premission_create 2019-11-22 15:27:35 +01:00
Kay0u
a719ab05a2 [Fix] permission create 2019-11-22 15:27:28 +01:00
Alexandre Aubin
20baa73a0f Merge branch 'stretch-unstable' of https://github.com/YunoHost/yunohost into stretch-unstable 2019-11-22 15:27:12 +01:00
Alexandre Aubin
2a5e36bd16
Merge pull request #846 from kay0u/fix-permission-create
[Fix] permission create
2019-11-22 15:26:39 +01:00
Alexandre Aubin
dd92a34202 Uh idk we also need to run this explicitly with /bin/bash 2019-11-22 15:10:44 +01:00
Kay0u
23489155fd
symplify premission_create 2019-11-21 18:13:20 +09:00
Alexandre Aubin
a858a2072b Also remove the legacy cron job, since there was a name change 2019-11-20 20:17:11 +01:00
Alexandre Aubin
fa5c0e9a70 Ugh had some weird issue because for some reason in some context subprocess uses /bin/sh ... 2019-11-20 20:16:28 +01:00
Alexandre Aubin
16f6d500a3 Better handle case where diagnosis cache is missing 2019-11-20 18:38:23 +01:00
Alexandre Aubin
02d00eece0 migrate -> run 2019-11-20 16:05:45 +01:00
Alexandre Aubin
f1b7b46c24 Merge branch 'stretch-testing' into stretch-unstable 2019-11-20 15:28:06 +01:00
Kay0u
a959a97e8c
[Fix] permission create 2019-11-20 13:28:10 +09:00
Alexandre Aubin
9e9215cc78 Simpler LDAP configuration 2019-11-19 14:48:48 +01:00
Alexandre Aubin
d50a69fe3e
Merge pull request #838 from YunoHost/improve-service-status-checks
[enh] Improve service status checks (and service add CLI)
2019-11-18 14:11:37 +01:00
Alexandre Aubin
7986f61b14 Specific shit for mysql 2019-11-17 16:59:35 +01:00
Alexandre Aubin
bb8b1b052d Using /var/log/daemon.log or /var/log/syslog is pointless, these files logs many different things. Instead, we shall always return the logs from journalctl 2019-11-17 16:39:12 +01:00
Alexandre Aubin
3c76497003
Merge branch 'stretch-unstable' into get-rid-of-app-status 2019-11-16 15:24:24 +01:00
Alexandre Aubin
71878f6bbe Move debug log dump from ynh_exit_properly to the core after failed app operation 2019-11-15 16:40:16 +01:00
Alexandre Aubin
6ff99f7cba Improve app_upgrade error management 2019-11-15 16:40:04 +01:00
Alexandre Aubin
39e109a5b6
Merge branch 'stretch-unstable' into dump-app-debug-extract-from-the-core 2019-11-15 16:38:14 +01:00
Alexandre Aubin
179c50e763
Merge pull request #832 from YunoHost/app_upgrade_error_management
Improve app_upgrade error management
2019-11-15 16:37:37 +01:00
Kay0u
6d5b90cc23 Refactor group permission 2019-11-14 17:48:43 +01:00
Kayou
0beec2e0cb Add arg in permission callback 2019-11-14 17:46:37 +01:00
Alexandre Aubin
04a9ae6db3
Merge branch 'stretch-unstable' into refactor-permission 2019-11-14 17:44:41 +01:00
Alexandre Aubin
9defb30133
Merge pull request #836 from kay0u/patch-1
Add arg in permission callback
2019-11-14 17:36:56 +01:00
Alexandre Aubin
041d5ce684
Merge branch 'stretch-unstable' into remove-deprecated-helpers 2019-11-14 17:26:13 +01:00
Alexandre Aubin
69b611bd28
Merge branch 'stretch-unstable' into improve-service-status-checks 2019-11-14 17:16:44 +01:00
Alexandre Aubin
e70530a9db Remove deprecated / useless option from 'service add', and add new ones for status and conf check and port exposure 2019-11-14 17:08:10 +01:00
Luke Murphy
c15311f7e7
Carry over fixes from @alexAubin
Lost during the rebasing but revived!
2019-11-10 21:01:31 +07:00
Luke Murphy
74a5979e91
Fix typo in copy/pasta'd function 2019-11-10 21:01:17 +07:00
Luke Murphy
4f583aadc2
Remove comment
This isn't an issue AFAICT, since the hooks manage this themselves
already. Hence, I assume this is an old comment and out of date.
2019-11-10 21:01:16 +07:00
Luke Murphy
25f270298f
Add is_boolean and use when calling settings_set
The CLI always passes the value as a string so we need to manage this
type casting step by hand.
2019-11-10 21:01:03 +07:00