Commit graph

605 commits

Author SHA1 Message Date
Laurent Peuch
d15ca90eed [mod] add more debug output 2018-05-12 03:13:29 +02:00
Laurent Peuch
3155def9dd [mod] simplify code 2018-05-12 03:13:29 +02:00
Laurent Peuch
b7e946517b [mod] more debug output 2018-05-12 03:13:29 +02:00
Laurent Peuch
ac6a14055d [mod] lisibility 2018-05-12 03:13:29 +02:00
Laurent Peuch
14c270cebd [mod] offset is never used 2018-05-12 03:13:29 +02:00
Laurent Peuch
ebe5cab099 [mod] add warning comment about unconcurrency safe _remove_lock function 2018-05-12 03:13:29 +02:00
Laurent Peuch
1d59738085 [fix] always remove lock if needed 2018-05-12 03:13:29 +02:00
Laurent Peuch
7435cfdea3 [mod] simplify code, give more verbose debug output 2018-05-12 03:13:29 +02:00
Laurent Peuch
1fab47cbea [mod] reduce indentation level 2018-05-12 03:13:29 +02:00
Laurent Peuch
bd28c24479 [mod] blank lines to make code more readable 2018-05-12 03:13:29 +02:00
Alexandre Aubin
8186f044dc Replace the nginx.conf thing with a function called at the beginning of the migration that restore the original file if it was modified 2018-05-11 03:32:54 +02:00
Alexandre Aubin
d769f539ab apt and hold packages are fucking stupid, so we need to handle this the dirty way 2018-05-10 23:46:08 +02:00
Alexandre Aubin
cc240e94ca Merge branch 'unstable' of https://github.com/yunohost/yunohost into unstable 2018-05-10 22:58:43 +02:00
Alexandre Aubin
e848524912 Unused imports, PEP8 2018-05-10 22:58:28 +02:00
Alexandre Aubin
2843ce923d Have a specific upgrade for nginx-common because some people edit /etc/nginx/nginx.conf 2018-05-10 22:37:27 +02:00
Laurent Peuch
ae89e38d56 [fix] some services are marked as None 2018-05-10 19:17:13 +02:00
Alexandre Aubin
a00e8a02a5 Bit cooler message at the end of the migration 2018-05-09 02:41:56 +02:00
Alexandre Aubin
4f9901c861 Use lsb_release instead of platform to check debian version during migration 2018-05-09 01:32:26 +02:00
Alexandre Aubin
e8f97e7b3e Also patch jessie-updates in sources.list 2018-05-09 00:25:11 +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