Commit graph

604 commits

Author SHA1 Message Date
Alexandre Aubin
8fe57fbbc5 Add a migration for php5-fpm pools to php7 2018-05-02 18:07:30 +02:00
Alexandre Aubin
30ad9a9547 Nscd version fixed at deb repo level, so this isn't needed anymore 2018-05-02 18:07:30 +02:00
Alexandre Aubin
16166917cb Also patch the php socket path 2018-05-02 18:07:30 +02:00
Alexandre Aubin
fb01deb990 Don't try to patch folders 2018-05-02 18:07:30 +02:00
Alexandre Aubin
7cf64bb1c7 Also apply the php5/php7 patch for 'hidden' files (e.g. .functions) 2018-05-02 18:07:30 +02:00
Alexandre Aubin
1eb5c6131a Apply the php5 path also for upgrades 2018-05-02 18:07:30 +02:00
Alexandre Aubin
1054633310 Add dirty trick to be able to install php5 apps 2018-05-02 18:04:15 +02:00
Alexandre Aubin
7d36869fe0 Updating acme-tiny to 7ef9164, include fixes for OpenSSL 1.1 2018-05-02 18:04:15 +02:00
Alexandre Aubin
34451babe3 Fall back to 1024 for the DKIM key size because nsupdate is stupid 2018-05-02 18:04:15 +02:00
Alexandre Aubin
862f8e9697 Handle new DKIM record format 2018-05-02 18:04:15 +02:00
Alexandre Aubin
c763aae453 Removing 'hostname -d' output from stdout during postinstall 2018-05-02 18:04:15 +02:00
Alexandre Aubin
1839fa44d0 Also remove useless nscd warning in user.py 2018-05-02 18:04:15 +02:00
Alexandre Aubin
0373da4a46 Hiding useless message (?) 2018-05-02 18:04:15 +02:00
Alexandre Aubin
078dbaf2d3 Fully execute the regen conf as root 2018-05-02 18:04:15 +02:00
Alexandre Aubin
59c8c0d100 We also need to regen nsswitch before ldapinit otherwise sudo doesnt work 2018-05-02 18:04:15 +02:00
Alexandre Aubin
03dac66bcb Regenerate nslcd config before creating admin in ldap 2018-05-02 18:04:15 +02:00
Alexandre Aubin
ddebd9f091 We also need to regen nsswitch before ldapinit otherwise sudo doesnt work 2018-05-02 18:04:15 +02:00
Alexandre Aubin
6fc3f08cda Regenerate nslcd config before creating admin in ldap 2018-05-02 18:04:15 +02:00
Alexandre Aubin
5013965c0e
[enh] [wip] Stretch migration (#433)
* Add migration skeleton
* Clumsy attempt to adapt the upgrade script to python
* At the end of the migration, force the regen conf of specific services
* Implement the apt clean/autoremove at the end of migration
* Attempt to fix the upgrade of yunohost packages
* Dumb mistake :|
* Adding strings
* Add test of free space for /var/
* Fix sources.list patching
* Stupid mistake :|
* Check system is up to date
* Working on disclaimer draft
* Add a function to list installed 'unstable' apps
* Get actual list of problemtic apps + improve disclaimer message building
* Use helper to run the apt update
* More simplifications of disclaimer building
* Add helper function to get manually modified files
* Fetch actuall list of manually modified files to build disclaimer
* Internationalize disclaimer
* Don't skip stretch migration when running postinstall on jessie
* Add a done message at the very end of the migration
* Also patch jessie/updates and backports in sources.list
* Backup and restore conf files modified during the upgrade to not mess regen-conf
* Also check for yunohost being in 2.x at the beginning of upgrade
* Fix the check for upgradable packages..
* Try to be more robust if folder already exists (when running multiple times)
* I probably meant fail2ban here o.O
* Try to improve robustness when running multiple time
* Add a check after the main upgrade that we're effectively on stretch
* Hold apps equivs packages during the upgrade
* Show dist-upgrade logs in the yunohost admin, using call_async_output
* Misc fixes because I broke things /o\
* Touch /etc/yunohost/installed at the end, because for some weird reason it get deleted sometimes :|
* Removing this unecessary message, especially because it 'hide' the previous one when running from the webadmin
* Install php-zip for nextcloud and kanboard
* Don't crash if there's no [app]-ynh-deps
* Revert previous commit that added this, should be fixed in the stretch branch now
* [fix] Unhold metronome for migration (#452)
* Let's use forge.yunohost.org as repo now
2018-05-02 02:10:46 +02:00
Alexandre Aubin
01956d22bd
Merge pull request #429 from YunoHost/manual-migrations
[enh] Manual migrations
2018-05-02 02:00:32 +02:00
Alexandre Aubin
062ca32eac
Move ssh commands into a subcategory of 'user' + fix a few bugs (#445)
* Move all ssh commands to a subcategory in user...

* [fix] Actionmap didn't match functions input ?

* [fix] Invalidate nscd cache to propagate new loginShell

* Consistency of list-keys even if there's no key..
2018-05-01 23:45:12 +02:00
pitchum
b9330d7501 [enh] Lazy-load some module for perf improvements (#451)
* Lazy load some python imports (perfs improved a lot).

These commands became way faster:
- yunohost app setting ...
- yunohost app list
- yunohost domain list
- yunohost domain dns-conf
- yunohost dyndns installcron/removecron
- ... and maybe others

* [fix] Timeout wat not defined anymore
2018-04-26 16:56:48 +02:00
Laurent Peuch
de305ce18e [mod] more explicite error message for dyndns subscribe server failure 2018-04-18 04:29:11 +02:00
Bram
fa152adee6 [enh] Display debug information on cert-install/renew failure (#447)
* [mod] split function to add _get_dns_ip
* [enh] display debug information on cert-install/renew failure
2018-04-17 17:23:04 +02:00
Alexandre Aubin
79eb70ec61 Use number/name in i18n string to avoid breaking existing translations... 2018-03-16 14:38:04 +01:00
Alexandre Aubin
44a66b1ff4 Fix migration skipping during postinstall 2018-03-16 14:38:04 +01:00
Alexandre Aubin
9009b3f9d3 Handle disclaimers 2018-03-16 14:38:04 +01:00
Alexandre Aubin
c8b1d7e2c3 Forgot to adapt this also.. 2018-03-16 14:38:04 +01:00
Alexandre Aubin
c266147fd9 Be able to list only pending or done migrations 2018-03-16 14:38:04 +01:00
Alexandre Aubin
c568b04459 Manage the auto/manual flag in migrations_migrate 2018-03-16 14:38:04 +01:00
Alexandre Aubin
c40f14e8f0 Adapt 'manual' call to migration from dyndns according to previous changes 2018-03-16 14:38:04 +01:00
Alexandre Aubin
d73197793c Adapt migrations_migrate according to previous changes 2018-03-16 14:38:04 +01:00
Alexandre Aubin
0702af6054 Simplify my previous stuff about managing migration infos ? 2018-03-16 14:38:04 +01:00
Alexandre Aubin
7f359e363b Add mode, description and optionnal disclaimer for migrations 2018-03-16 14:38:04 +01:00
Alexandre Aubin
020dea6531 Change the way we list migrations (always load the module) and the way we manage its infos 2018-03-16 14:38:04 +01:00
Laurent Peuch
bdface200a
Merge pull request #428 from jlescher/unstable
[Fix] Stronger match for acme-challenge nginx location
2018-03-07 22:07:58 +01:00
Laurent Peuch
c992085009
Merge pull request #404 from YunoHost/authorized_keys
[enh] add commands to manage authorized-keys of users
2018-02-15 05:51:57 +01:00
Laurent Peuch
79ee4cb13d
Merge pull request #403 from YunoHost/allow_ssh_user
Add commands to allow/disallow a yunohost user to connect in ssh
2018-02-15 05:51:46 +01:00
Laurent Peuch
f70949b350 [fix] handle uncatched exception 2018-02-11 05:39:45 +01:00
Laurent Peuch
b055a41d04
Merge pull request #421 from YunoHost/fix-1043-cron-dont-run-during-backup
[fix] Cron issue during custom backup
2018-02-08 03:46:23 +01:00
Laurent Peuch
c88cafbcbd
Merge pull request #360 from YunoHost/enh-add-post-hook-for-apps
Add post hooks for apps operation
2018-02-08 03:10:03 +01:00
Laurent Peuch
a2ab9c6cac
Merge pull request #427 from YunoHost/enh_conf_folder_for_change-url
Add access to conf folder when executing change_url script
2018-02-07 21:58:02 +01:00
Laurent Peuch
fd3a17cc7e
Merge pull request #424 from YunoHost/clean-get-public-ip
[fix] Simplify get_public_ip
2018-02-07 21:57:02 +01:00
Laurent Peuch
52a54c5ab1
[mod] we are in 2017 2018-02-07 21:46:38 +01:00
Laurent Peuch
400dc25d0e
Merge pull request #418 from YunoHost/checkurl_is_deprecated_meh
Moar depreciation warning about checkurl
2018-02-07 21:19:35 +01:00
Jean-Baptiste Lescher
50bd20fce9 [Fix] Stronger match for acme-challenge nginx location
If an application (for instance roundcube) installed at the root of a
subdomain has the following nginx configuration:

	location ~ ^/(.+/|)\. {
		deny all;
	}

acme-challenge matching location:

	location '/.well-known/acme-challenge'
	{
		default_type "text/plain";
		alias /tmp/acme-challenge-public/;
	}

will not be used.

This fix prevents further matching by regular expressions.

Co-authored-by: Tomo59 <thomas.gambier@gmail.com>
2018-01-30 17:52:03 +01:00
Jimmy Monin
9511e01f5a Add access to conf folder when executing change_url script 2018-01-27 16:16:42 +01:00
Alexandre Aubin
f5b5edb3bb This get_public_ips isn't really relevant anymore 2018-01-26 03:41:34 +01:00
Alexandre Aubin
e80f3a5a55 Fix imports and get_public_ip usage 2018-01-26 03:39:35 +01:00
Alexandre Aubin
4dfb1ee777 Move get_public_ip to an 'util' file 2018-01-26 03:19:22 +01:00