Commit graph

40 commits

Author SHA1 Message Date
Alexandre Aubin
02a30125b5 service foobar action -> systemctl action foobar 2021-04-15 14:31:33 +02:00
Alexandre Aubin
aefc100ab4 security: Enforce some permission for regular yunohost users 2021-04-10 01:07:34 +02:00
Alexandre Aubin
ba709be534
Merge pull request #963 from YunoHost/enforce-permissions-in-etc-yunhost
[fix] Enforce permissions for stuff in /etc/yunohost/
2020-05-08 04:15:10 +02:00
Alexandre Aubin
d8c2f436f9
Merge branch 'stretch-unstable' into misc-optimizations 2020-04-29 18:14:05 +02:00
Alexandre Aubin
31e868e82d Enforce permissions for stuff in /etc/yunohost/ 2020-04-29 03:49:37 +02:00
Alexandre Aubin
ceab9bd1b3
Merge branch 'stretch-unstable' into fix-1516-separate-xmpp-vhosts 2020-04-27 18:03:34 +02:00
Alexandre Aubin
319898baf7 Feed domain list to regen-conf hooks directly through env to avoid having to call 'yunohost domain list' 2020-04-25 03:49:30 +02:00
Alexandre Aubin
b2de9a9d40 Merge branch 'stretch-stable' into stretch-unstable 2020-04-09 18:04:58 +02:00
Alexandre Aubin
be88a2835a Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2020-04-09 14:06:55 +02:00
Matthew DeAbreu
1f623830b3 Update 12-metronome
simplify change by reordering operations
2020-04-09 14:01:21 +02:00
Matthew DeAbreu
031f8a6e38 ensure metronome owns domain dir
When adding new domains to Yunohost a directory for each newly added domain is created in `/var/lib/metronome` unfortunately since the directory is created with `sudo mkdir` that means `root:root` owns the directory. Metronome will now fail to write to the directory.
2020-04-09 13:59:03 +02:00
pitchum
22c88dc47e Enable XMPP features only on "parent domains". 2020-04-06 20:43:32 +02:00
pitchum
748dcfd8c5 Setup XMPP components for each domain, not only the main domain. 2020-04-06 20:43:32 +02:00
pitchum
ada95f8fca http-upload only available on maindomain (for the moment). 2020-03-25 12:09:24 +01:00
Alexandre Aubin
27f6899b65 /var/www/xmpp-upload.{domain} -> /var/xmpp-upload/{domain} 2020-03-23 22:15:03 +01:00
pitchum
994f0ca1ef nginx + metronome config for http_upload 2020-03-22 08:36:33 +01:00
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
Matthew DeAbreu
3b9481ae2d
Update 12-metronome
simplify change by reordering operations
2019-11-22 09:02:01 -08:00
Matthew DeAbreu
7c09982d3d
ensure metronome owns domain dir
When adding new domains to Yunohost a directory for each newly added domain is created in `/var/lib/metronome` unfortunately since the directory is created with `sudo mkdir` that means `root:root` owns the directory. Metronome will now fail to write to the directory.
2019-11-20 09:52:01 -08:00
Jérôme Lebleu
13ed77a6ca [fix] Set default values for force and dry_run in conf_regen hooks 2016-04-22 12:18:25 +02:00
Jérôme Lebleu
cdf3c13bf5 [enh] Add a dry-run option for service_regen_conf 2016-04-19 20:52:45 +02:00
Jérôme Lebleu
6c3de740aa [enh] Restart services as needed only in conf_regen hooks 2016-04-16 18:36:20 +02:00
Jérôme Lebleu
bade8c5649 [fix] Be less restrictive on domain name in metronome conf_regen hook 2016-04-16 16:46:22 +02:00
Jérôme Lebleu
cdd36570f8 [fix] Rename metronome template conf files 2016-04-16 15:20:05 +02:00
Jérôme Lebleu
8269788172 [fix] Typo and variable name fixes in conf_regen hooks 2016-04-16 14:41:54 +02:00
Jérôme Lebleu
93fa6b07da [fix] Simplify directory creation in metronome conf_regen hook 2016-04-13 22:34:11 +02:00
Jérôme Lebleu
2d28006c83 [enh] Update metronome conf_regen hook 2016-04-12 21:20:17 +02:00
Jérôme Lebleu
96d4eb3396 [clean] Move conf_regen hooks to prevent issue while updating them 2016-04-11 17:30:57 +02:00
Julien Malik
1300f4c0ca [fix] fix lintian script-not-executable 2016-03-12 00:20:52 +01:00
julienmalik
e93b036830 [fix] access to /var/lib/metronome/ needs sudo permissions
During a domain removal, I hit this error :

2016-02-25 11:52:31,702 INFO     yunohost.hook <lambda> - [4615.1] + rm -rf /var/lib/metronome/{{domain}}
2016-02-25 11:52:31,705 WARNING  yunohost.hook <lambda> - [4615.1] rm: cannot remove ‘/var/lib/metronome/{{domain}}’: Permission denied
2016-02-25 11:52:31,803 ERROR    yunohost.hook hook_callback - [4615.1] Script execution failed
2016-02-25 12:03:54 +01:00
Jérôme Lebleu
ec590bdef8 [fix] Restart the service if reloading fails in conf_regen (bugfix #195) 2016-02-21 18:11:27 +01:00
Jérôme Lebleu
e16b560626 [fix] Correct condition syntax in metronome conf_regen hook 2016-01-19 18:52:29 +01:00
Jérôme Lebleu
13dd9b4f89 [fix] Use --output-as instead of deprecated options 2015-11-30 18:35:41 +01:00
kload
eea9b2e3af [fix] Do not mind notices and warnings when parsing command response 2015-10-31 18:03:51 +01:00
Jérôme Lebleu
ee1e3cdd3d [fix] Remove already installed by metronome package files 2015-10-27 09:49:19 +01:00
Jérôme Lebleu
f4a9f1b85b [fix] Install updated metronome 3.7 modules instead of copying 2015-10-08 15:55:17 +02:00
kload
91ad01b839 [fix] Compatibility with the new moulinette '--plain' option 2015-10-01 16:38:22 -04:00
kload
15533c7c6f [fix] Various fixes on configuration regeneration 2015-09-30 19:36:55 -04:00
kload
8a2c607933 [fix] Remove unused domain configurations on impacted services 2015-09-30 19:02:15 -04:00
kload
ec63f336cf [enh] Metronome regen script 2015-09-29 08:57:20 -04:00