Commit graph

4436 commits

Author SHA1 Message Date
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
ljf
b0a60b89d2 [fix] Display operation name if exist 2018-04-14 18:16:56 +02:00
ljf
1b62e9425d [enh] Allow to display part of log specified with path 2018-04-14 18:11:50 +02:00
ljf
d17193b404 [enh] Limit number of line per log 2018-04-14 04:55:20 +02:00
ljf
bb03e90d16 [enh] Support other log path in metadata 2018-04-14 04:29:41 +02:00
ljf
2c30bb8965 [enh] Configure unit operations on cert management 2018-04-14 04:14:14 +02:00
ljf
650b768229 [enh] Replace category by related_to fields 2018-04-14 04:04:09 +02:00
ljf
73828306df [fix] Path log file with no extension 2018-04-13 11:27:31 +02:00
ljf
a9d937db21 [enh] Display nice operation name 2018-04-13 10:11:44 +02:00
ljf
79ee0396d0 [enh] Add related info 2018-04-12 21:22:17 +02:00
ljf
b81d89f93a [fix] Remove old ref to Journal 2018-04-11 23:01:24 +02:00
ljf
6c063112bf [fix] Some missing 2018-04-11 22:58:26 +02:00
ljf
fac50997dc [fix] Some missing 2018-04-11 22:54:46 +02:00
ljf
219f1c6262 [enh] Use Handler to write log 2018-04-11 22:49:26 +02:00
ljf
a22672ede8 [fix] Avoid operation log filename with space 2018-04-11 10:03:20 +02:00
ljf
c1bd302973 [enh] Rename some logs into operations 2018-04-11 09:31:40 +02:00
ljf
fb27b4d5f2 [enh] Sort logs display by start date 2018-04-10 16:28:31 +02:00
ljf
d310540a6f [enh] Set the date before operation name 2018-04-10 15:42:48 +02:00
ljf
ba01168684 [enh] Allow to display all operation logs with one command 2018-04-03 20:38:56 +02:00
Bram
60727e5fab
[fix] typo 2018-03-20 22:27:42 +01: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
6dabcadf40
Merge branch 'unstable' into journals 2018-02-08 16:44:32 +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