Commit graph

1825 commits

Author SHA1 Message Date
Kayou
7a0aa851a6
Keep helpers consistent 2020-11-26 11:00:24 +01:00
Kay0u
f495f1cf71
default value (True) for sync_perm param in helpers 2020-11-25 02:11:06 +01:00
Alexandre Aubin
144f98ad44
Gotta define a default value to avoid unbound variable 2020-11-10 17:09:23 +01:00
Alexandre Aubin
7aa3ff5255 Added a .strip() to moulinette's check_output because was tired of adding it all over the places 2020-10-31 18:58:19 +01:00
Alexandre Aubin
c45c182980
Merge pull request #861 from YunoHost/permission_protection
Extends permissions features
2020-10-30 14:51:52 +01:00
Alexandre Aubin
a73683cb66
Merge pull request #1065 from YunoHost/fix-mariadb-max_allowed_packet
[fix] MySQL server has gone away in nextcloud
2020-10-27 17:17:23 +01:00
Alexandre Aubin
c979d1e640 Do not display a huge wall of boring logs while waiting for the service to start 2020-10-20 14:21:27 +02:00
ljf (zamentur)
02105568f8
[fix] MySQL server has gone away in nextcloud
[Warning] Aborted connection 110060 to db: 'nextcloud' user: 'nextcloud' host: 'localhost' (Got a packet bigger than 'max_allowed_packet' bytes)
2020-10-12 14:39:03 +02:00
Alexandre Aubin
ba884d5b6d Get rid of yunohost.local in main domain nginx conf ... because this interfer with using yunohost.local for postinstall. Just let it be handled by the default vhost 2020-10-03 16:32:31 +02:00
Alexandre Aubin
14644f0567
Merge pull request #1058 from Chostakovitch/fix_redis_hook
Fix redis hook (bash does not allow empty function)
2020-10-03 11:30:01 +02:00
Quentin Duchemin
6940ea1946
Fix redis hook (bash does not allow empty function
Add a dummy instruction equivalent to true
2020-10-03 11:24:47 +02:00
Alexandre Aubin
2c6736df29 These fail2ban jails do not exists anymore (since buster I guess ?) 2020-10-03 11:19:44 +02:00
Alexandre Aubin
aaba3fe6aa Merge branch 'dev' into permission_protection 2020-09-30 19:07:12 +02:00
Alexandre Aubin
76f042cca4 Looks like it's typo day today ~_~ 2020-09-30 19:06:49 +02:00
Alexandre Aubin
a7d105ace6 Merge branch 'dev' into permission_protection 2020-09-30 18:48:26 +02:00
Alexandre Aubin
c94a7614ad Only restore set -x option if it was previously set 2020-09-30 18:43:11 +02:00
Alexandre Aubin
950dbc6b46
Merge pull request #935 from YunoHost/remove_legacy_settings
Remove legacy settings
2020-09-30 17:06:08 +02:00
Alexandre Aubin
6e69df3768 Add configuration tests for dnsmasq, fail2ban, slapd 2020-09-29 16:24:30 +02:00
Alexandre Aubin
a1c1057ab4 Add redis hook to enforce permissions on /var/log/redis 2020-09-29 15:10:03 +02:00
Alexandre Aubin
dd9df5943e Set sub-permission labels as 'Mainlabel (Sublabel)' 2020-09-27 18:20:29 +02:00
Alexandre Aubin
ea685c46d4
Merge pull request #1055 from YunoHost/add-config-helper
Add ynh_add_config helper
2020-09-24 21:25:34 +02:00
Alexandre Aubin
815c8fc49e Refactor app_setting to better separate legacy permission setting vs. regular setting, hopefully make the core more readable 2020-09-24 20:25:28 +02:00
Alexandre Aubin
96873edba8
Merge pull request #818 from jershon/fix-1333-update_email_regex
Update the email regex so it accept the '+' sign.
2020-09-24 17:25:49 +02:00
Alexandre Aubin
14e8888078 My god, please no, there's no damn jessie anymore 2020-09-23 22:45:26 +02:00
Alexandre Aubin
b48f6521e2 Removing the pattern/required flag from --mail in user_create was intentional because it's now deprecated ... + restablish support xn-- stuff... 2020-09-23 21:55:15 +02:00
Alexandre Aubin
c0234a75f5 Better naming ? :s 2020-09-23 21:48:31 +02:00
Julien Jershon
69e20fa114 Update the email regex so it accept the '+' sign. Fix https://github.com/YunoHost/issues/issues/1333. 2020-09-23 01:56:40 +02:00
Alexandre Aubin
ebe6c8a5f2
Apply suggestions from code review (comment indentation)
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 21:15:59 +02:00
Alexandre Aubin
3b94b23516
Update data/helpers.d/utils
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 20:37:45 +02:00
Alexandre Aubin
1e79e50d68 Add ynh_add_config helper 2020-09-20 20:01:55 +02:00
Augustin Trancart
ffcd0e33ac Fix ynh_app_upstream_version : restore ability to read manifest
The documentation was saying A, the code was doing B, and calling
functions were expecting both A and B (see
ynh_check_app_version_changed). So this commit aims at making
everyone agree, by matching usage.
2020-09-19 15:29:38 +02:00
Alexandre Aubin
b50bf9d7d3
Merge pull request #1047 from SiM/backup-msg
move BACKUP_CORE_ONLY message to standard output
2020-09-16 17:43:53 +02:00
Alexandre Aubin
2864c07266
Merge pull request #1046 from YunoHost/backup_download
Add possibility to download backups
2020-09-16 17:41:08 +02:00
Alexandre Aubin
8bd1758c8c
Merge pull request #1052 from YunoHost/detect-wrong-arguments
[fix] detect misformated arguments in getopts
2020-09-16 17:17:18 +02:00
Alexandre Aubin
a60cd4f559
Diagnose ssl libs installed from sury (#1053)
* Small fix / syntax improvement in apt conf regen hook

* Diagnose, report and add a tip if some ssl libs are installed from Sury (shouldnt happen with the new pinning strategy, but some user still encounter issues because of this because of legacy installs)
2020-09-16 16:18:10 +02:00
Alexandre Aubin
d243fe76ce
[enh] Better problematic apt dependencies auto-investigation mechanism (#1051)
* [enh] Better problematic apt dependencies auto-investigation mechanism

* Misc tweak / fixes following tests
2020-09-16 16:14:03 +02:00
Alexandre Aubin
6a618b0f33 Use php7.3 by default in CLI 2020-09-16 15:24:28 +02:00
Kayou
6945867f86
detect wrong arguments 2020-09-16 13:23:10 +02:00
Kayou
15a7967f47
Epic bugfix 2020-09-15 20:53:26 +02:00
Alexandre Aubin
9156b1e56a Fix warnings and weird stuff >_> 2020-09-14 17:54:20 +02:00
Alexandre Aubin
ca5f264baf Remove pipe char when trying to re-run apt with dry-run ... Because apt becomes absolutely crazy and make every package installed conflict with weird stuff 2020-09-14 17:06:40 +02:00
Maniack Crudelis
d2bd6b6c12 Add doc about is_big 2020-09-11 20:29:23 +02:00
ljf (zamentur)
5923114b20
[fix] Reduce right given to ynh users with ssh (#1050)
* [fix] Avoid ynh user to be able to use X11 forwarding

* [fix] Avoid some bad situations

* [fix] Remove chroot restrictions and x11 authorization

* Update comments

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-09-11 20:27:40 +02:00
Alexandre Aubin
99b0a4184d
Apply suggestions from code review
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-11 16:47:49 +02:00
Alexandre Aubin
0ad014ad1f
Merge branch 'dev' into enh-relay-smtp 2020-09-10 17:50:10 +02:00
ljf (zamentur)
bc2de62c7b
[fix] Typo in setting name 2020-09-10 03:29:09 +02:00
ljf (zamentur)
ce9689e0ef
[enh] Force encrypt if we are using an smtp relay
Thanks to @khimaros for this suggestion
2020-09-10 03:27:13 +02:00
Alexandre Aubin
c6905ed2c8 Merge branch 'dev' into permission_protection 2020-09-09 02:22:35 +02:00
SiM
9a2a6385bb move BACKUP_CORE_ONLY msg to standard output 2020-09-08 18:10:34 +02:00
Alexandre Aubin
50f68e2886 Properly handle case where no match from grep 2020-09-08 17:25:11 +02:00