Commit graph

4022 commits

Author SHA1 Message Date
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
4420cc300a [mod] remove unused variable 2018-05-10 22:10:35 +02:00
Laurent Peuch
061b6bbcce [enh] display service journalctl logs on failed to start/stop/enable/disable error 2018-05-10 22:09:02 +02:00
Laurent Peuch
e8412ae0c8 [mod] more debug information 2018-05-10 19:44:05 +02:00
Laurent Peuch
ae89e38d56 [fix] some services are marked as None 2018-05-10 19:17:13 +02:00
Alexandre Aubin
118b6fe51e Merge commit '77fcb6ad1285f61424190efd5ab12c5de3bd38eb' into update-spectre-meltdown-checker 2018-05-10 03:26:52 +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
Laurent Peuch
a9b931b622 [fix] missing import 2018-05-05 12:25:36 +02:00
Laurent Peuch
9d5b918929 [mod] remove useless import 2018-05-05 12:25:19 +02:00
Alexandre Aubin
cc4a2f2f2e Also patch php5 app when calling remove 2018-05-02 18:07:31 +02:00
Alexandre Aubin
922821418e Draft of DB migration from Postgresql 9.4 to 9.6 2018-05-02 18:07:30 +02:00
Alexandre Aubin
e36c7daa99 Apply the dirty php5/php7 patch to scripts/conf when restoring an app 2018-05-02 18:07:30 +02:00
Alexandre Aubin
696ab8a989 Stop dis php5 fpm old guy 2018-05-02 18:07:30 +02:00
Alexandre Aubin
1f5ff188f7 Also patch nginx conf for the php5/7 migration 2018-05-02 18:07:30 +02:00
Alexandre Aubin
e0ac622ffc Skip all migrations during postinstall 2018-05-02 18:07:30 +02:00
Alexandre Aubin
fbc18c56aa Typo for php-fpm service 2018-05-02 18:07:30 +02:00
Alexandre Aubin
d597f31e13 Forgot to fix the php service name in the migration... 2018-05-02 18:07:30 +02:00
Alexandre Aubin
4baa01143e Move php5/7 migration as number 4 2018-05-02 18:07:30 +02:00
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
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