Commit graph

627 commits

Author SHA1 Message Date
Alexandre Aubin
d77c616d71 Return None directly if we try to calculate the hash of a file that does not exists 2018-05-20 21:09:18 +02:00
Laurent Peuch
8b0295aa04 [fix] keep backward compatibility 2018-05-17 04:52:55 +02:00
Bram
f114e378e5
Merge branch 'unstable' into services_dbus 2018-05-14 04:06:29 +02:00
Bram
757ca2466b
Merge pull request #472 from YunoHost/clean_services.py2
bunch of cleaning in services.py
2018-05-12 04:39:27 +02:00
Bram
9c55f0a52b
Merge pull request #464 from YunoHost/update-spectre-meltdown-checker
Update spectre meltdown checker
2018-05-12 04:37:49 +02:00
Bram
74b38ba929
Merge pull request #468 from YunoHost/clean_services.py
more debug output in services.py
2018-05-12 04:35:16 +02:00
Bram
1a72a14e28
Merge pull request #470 from YunoHost/refactor_service_log
[mod] refactor service_log to make is readable
2018-05-12 04:34:44 +02:00
Laurent Peuch
5f2f262c57 [doc] add comment explaining situation 2018-05-12 03:13:29 +02:00
Laurent Peuch
249994785f [mod] more debug output 2018-05-12 03:13:29 +02:00
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
Laurent Peuch
54dffa5f94 [mod] refactor service_log to make is readable 2018-05-11 05:08:02 +02:00
Laurent Peuch
2bef98a519 [enh] add path to service file in service status 2018-05-11 04:51:28 +02:00
Laurent Peuch
0011c4ab56 [enh] get since how much time a service is running 2018-05-11 04:49:52 +02:00
Laurent Peuch
1b774527d8 [enh] get active status of service 2018-05-11 04:49:43 +02:00
Laurent Peuch
929515ba94 [mod] remove useless import 2018-05-11 04:49:20 +02:00
Laurent Peuch
07139e7bc1 [enh] display service description on status 2018-05-11 04:40:35 +02:00
Laurent Peuch
f4df8c8ec8 [enh] move to dbus to retreive service status 2018-05-11 04:35:28 +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
Laurent Peuch
7ea53f2ff7 [fix] metldown script can now returns 2/3 return code 2018-05-11 01:25:41 +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
Bram
9d1ed9e8d2
Merge branch 'unstable' into clean_services.py 2018-05-10 23:39:02 +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
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
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