Commit graph

181 commits

Author SHA1 Message Date
Laurent Peuch
d0b9eb1bdd [fix] handle grabbing services status from alternate names, fix yunohost/issues#1134 2018-05-29 08:31:44 +02:00
Alexandre Aubin
742c52f496 Merge branch 'testing' into stretch-unstable 2018-05-28 02:26:49 +02:00
ljf
2cb0e7916e [enh] Watch in compress log file too 2018-05-23 01:17:32 +02:00
Bram
646425e780
Merge pull request #476 from YunoHost/translate_service_descriptions
Translate service descriptions
2018-05-21 03:26:02 +02:00
Alexandre Aubin
dd8af083b3 Merge branch 'unstable' into stretch-unstable 2018-05-20 21:43:05 +02:00
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
23474558fc [mod] anglish 2018-05-18 04:38:11 +02:00
Laurent Peuch
357be33583 [enh] uses services descriptions translatables 2018-05-18 04:10:41 +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
74b38ba929
Merge pull request #468 from YunoHost/clean_services.py
more debug output in services.py
2018-05-12 04:35:16 +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
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
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
078dbaf2d3 Fully execute the regen conf as root 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
ljf
219f1c6262 [enh] Use Handler to write log 2018-04-11 22:49:26 +02:00
Alexandre Aubin
164377d599 [mod] Use systemctl for all service operations 2017-11-27 23:12:13 +01:00
Alexandre Aubin
fd23216544 [mod] Use proper functions to enable/start firewall during postinstall 2017-11-27 22:17:09 +01:00
Alexandre Aubin
9903c48f3a Be able to give lock to son processes detached by systemctl (#367)
* Give lock to systemctl sons
* Get the 'need_lock' flag from services.yml
* Don't need the lock for enable/disable and other stuff
2017-10-08 23:46:10 +02:00
Laurent Peuch
baf0d098f5 [mod] explicitely import previously globals magic variables 2017-07-25 21:32:20 +02:00
Alexandre Aubin
7af130d81b Allow regen-conf to manage new files already when they're already present on the system (#311) 2017-05-22 15:24:47 +02:00
Laurent Peuch
4db42fdeb7 [fix] if a service don't have a 'status' entry, don't list it 2017-03-07 00:30:57 +01:00
Laurent Peuch
45e85fef82 Merge pull request #252 from ZeHiro/fix-785
[fix] handle the case where services[service] is set to null in the s…
2017-02-19 20:17:12 +01:00
Alexandre Aubin
834cf459dc Please Bram :D 2017-02-19 20:15:37 +01:00
Alexandre Aubin
0e55b17665 Fixing also get_conf_hashes 2017-02-12 18:49:59 -05:00